We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7342028 + 65a9cc2 commit de4e4f8Copy full SHA for de4e4f8
.github/workflows/docs.yaml
@@ -0,0 +1,32 @@
1
+name: docs
2
+
3
+on:
4
+ push:
5
+ branches: [ v1 ] # 或者你用的分支名
6
+ paths:
7
+ - "docs/**"
8
+ - ".github/workflows/docs.yml"
9
10
+jobs:
11
+ build-deploy:
12
+ runs-on: ubuntu-latest
13
+ steps:
14
+ - uses: actions/checkout@v4
15
16
+ - uses: actions/setup-python@v5
17
+ with:
18
+ python-version: "3.12"
19
20
+ - name: Install deps
21
+ run: |
22
+ python -m pip install -U sphinx myst-parser furo sphinx-autobuild sphinx-copybutton
23
24
+ - name: Build docs
25
26
+ make -C docs html
27
28
+ - name: Deploy to GitHub Pages
29
+ uses: peaceiris/actions-gh-pages@v3
30
31
+ github_token: ${{ secrets.GITHUB_TOKEN }}
32
+ publish_dir: docs/_build/html
0 commit comments