Skip to content
This repository was archived by the owner on May 11, 2026. It is now read-only.

Commit de179cf

Browse files
committed
add github-pages for mkdocs
1 parent 76c0f03 commit de179cf

1 file changed

Lines changed: 42 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 42 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,45 @@ jobs:
3434
- name: Run tests
3535
run: uv run pytest
3636

37-
- name: Build Documentation
38-
run: uv run --group docs mkdocs build
37+
38+
pages:
39+
needs: test
40+
runs-on: ubuntu-latest
41+
42+
permissions:
43+
contents: read
44+
pages: write
45+
id-token: write
46+
47+
environment:
48+
name: github-pages
49+
url: ${{ steps.deploy-pages.outputs.page_url }}
50+
51+
steps:
52+
- name: Checkout code
53+
uses: actions/checkout@v4
54+
with:
55+
fetch-depth: 0
56+
57+
- name: Install uv and Python
58+
uses: astral-sh/setup-uv@v3
59+
with:
60+
version: "latest"
61+
62+
- name: Install dependencies (docs group)
63+
run: uv sync --group docs
64+
65+
- name: Build documentation (mkdocs build)
66+
run: uv run mkdocs build
67+
68+
- name: Setup Pages
69+
uses: actions/configure-pages@v4
70+
71+
- name: Upload artifact
72+
uses: actions/upload-pages-artifact@v3
73+
with:
74+
path: ./site
75+
76+
- name: Deploy to GitHub Pages
77+
id: deploy-pages
78+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)