docs: 添加 UI 现代化更新报告 #6
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
| # GitHub Actions - 文档部署专用 | |
| name: Deploy Docs | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - 'docs/**' | |
| - 'mkdocs.yml' | |
| - 'data/skills/**' | |
| - 'scripts/**' | |
| - 'src/**' | |
| workflow_dispatch: # 允许手动触发 | |
| # 取消正在运行的旧任务 | |
| concurrency: | |
| group: pages-${{ github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.11" | |
| cache: 'pip' | |
| - name: Install dependencies | |
| run: | | |
| pip install -e ".[pipeline]" | |
| # 使用稳定的 mkdocs-material 版本 | |
| pip install mkdocs-material~=9.5.0 | |
| - name: Generate skills docs | |
| run: | | |
| python scripts/generate_from_example.py | |
| - name: Setup Pages | |
| uses: actions/configure-pages@v4 | |
| - name: Build with MkDocs | |
| run: | | |
| mkdocs build --clean --verbose | |
| - name: Upload artifact | |
| uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: ./site | |
| deploy: | |
| runs-on: ubuntu-latest | |
| needs: build | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| steps: | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v4 |