Skip to content

Commit de4e4f8

Browse files
2 parents 7342028 + 65a9cc2 commit de4e4f8

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/docs.yaml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
run: |
26+
make -C docs html
27+
28+
- name: Deploy to GitHub Pages
29+
uses: peaceiris/actions-gh-pages@v3
30+
with:
31+
github_token: ${{ secrets.GITHUB_TOKEN }}
32+
publish_dir: docs/_build/html

0 commit comments

Comments
 (0)