添加语义工作流配置文件及相关文档更新,增强工具发现功能的说明和使用场景 #10
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: docs-ci | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| - "codex/**" | |
| jobs: | |
| markdown: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: DavidAnson/markdownlint-cli2-action@v18 | |
| with: | |
| globs: | | |
| README.md | |
| docs/**/*.md | |
| benchmark_reports/**/*.md | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: "20" | |
| cache: "npm" | |
| cache-dependency-path: docs/web/package-lock.json | |
| - name: Build docs web | |
| working-directory: docs/web | |
| run: | | |
| npm ci | |
| npm run build |