Skip to content

docs: 添加 UI 现代化更新报告 #6

docs: 添加 UI 现代化更新报告

docs: 添加 UI 现代化更新报告 #6

Workflow file for this run

# 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