This repository was archived by the owner on Dec 22, 2025. It is now read-only.
更新配置文档 #12
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
| ### Author: Frish2021 ### | |
| name: Docs CI | |
| on: | |
| push: | |
| paths: | |
| - "**/*.md" | |
| - "pnpm-lock.yaml" | |
| - "package.json" | |
| - '.github/workflows/deploy_docs.yml' | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 21 | |
| - name: Install dependencies | |
| run: | | |
| npm install -g pnpm | |
| pnpm install --frozen-lockfile | |
| - name: Build project | |
| run: pnpm build | |
| - name: Deploy to Pages | |
| uses: peaceiris/actions-gh-pages@v3 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_dir: .vitepress/dist | |
| force_orphan: true |