Skip to content

Commit 76f24fe

Browse files
committed
ci(github-actions): add doc publish action
1 parent a7e5913 commit 76f24fe

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/docpublish.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Publish documentation
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
publish-documentation:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
- name: Install the latest version of uv
14+
uses: astral-sh/setup-uv@v6
15+
- name: Build docs
16+
env:
17+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
18+
run: |
19+
uv run --group docs mkdocs build
20+
- name: Push doc to Github Page
21+
uses: peaceiris/actions-gh-pages@v4
22+
with:
23+
github_token: ${{ secrets.GITHUB_TOKEN }}
24+
publish_branch: gh-pages
25+
publish_dir: ./site
26+
user_name: "github-actions[bot]"
27+
user_email: "github-actions[bot]@users.noreply.github.com"

0 commit comments

Comments
 (0)