Repository navigation
新增:发布自动导演 V2 与 0.5.0 创作升级 #40
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Project Site Pages | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - "site/**" | |
| - "docs/architecture/**" | |
| - "docs/public/**" | |
| - "docs/releases/release-notes.md" | |
| - "scripts/check-docs-manifest.cjs" | |
| - "package.json" | |
| - ".github/workflows/site-pages.yml" | |
| - "pnpm-lock.yaml" | |
| - "pnpm-workspace.yaml" | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| concurrency: | |
| group: pages | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@v6 | |
| with: | |
| version: 10.6.0 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: 24 | |
| cache: pnpm | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Check docs manifest | |
| run: pnpm check:docs-manifest | |
| - name: Build project site | |
| run: pnpm --filter @ai-novel/site build | |
| - name: Configure GitHub Pages | |
| uses: actions/configure-pages@v6 | |
| with: | |
| enablement: true | |
| - name: Upload site artifact | |
| uses: actions/upload-pages-artifact@v4 | |
| with: | |
| path: site/dist | |
| deploy: | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| needs: build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v5 |