Skip to content

docs: publish OpenClaw 能力追踪文档 v2 完整使用指南 #58

docs: publish OpenClaw 能力追踪文档 v2 完整使用指南

docs: publish OpenClaw 能力追踪文档 v2 完整使用指南 #58

Workflow file for this run

# CI/CD Pipeline for GitHub Pages
# Automatically builds and deploys the Next.js static site to GitHub Pages
name: Deploy to GitHub Pages
on:
push:
branches:
- master
workflow_dispatch:
schedule:
- cron: '0 0 * * *' # 每天 UTC 00:00 (北京时间 08:00) 自动构建
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: pages
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
cache-dependency-path: website/package-lock.json
- name: Cache Next.js build
uses: actions/cache@v4
with:
path: website/.next/cache
key: ${{ runner.os }}-nextjs-${{ hashFiles('website/package-lock.json') }}-${{ hashFiles('website/**/*.js', 'website/**/*.jsx', 'website/**/*.ts', 'website/**/*.tsx') }}
restore-keys: |
${{ runner.os }}-nextjs-${{ hashFiles('website/package-lock.json') }}-
- name: Install dependencies
run: npm ci
working-directory: website
- name: Build
run: npm run build
working-directory: website
env:
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: website/out
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4