Skip to content

Commit d85bfbf

Browse files
committed
build and publish docs
1 parent 5620aaa commit d85bfbf

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/main.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
run: |
5252
uv run pre-commit run --all-files --show-diff-on-failure
5353
54-
docs:
54+
build-docs:
5555
runs-on: ubuntu-latest
5656
env:
5757
PYTHON_VERSION: "3.11" # Use a single version for docs
@@ -68,4 +68,12 @@ jobs:
6868
- name: Build docs
6969
run: |
7070
uv run sphinx-build source build/html
71+
touch build/html/.nojekyll
7172
working-directory: docs
73+
- name: Deploy to GitHub Pages
74+
if: github.ref == 'refs/heads/main'
75+
uses: peaceiris/actions-gh-pages@v3
76+
with:
77+
github_token: ${{ secrets.GITHUB_TOKEN }}
78+
publish_dir: ./docs/build/html
79+
force_orphan: true

0 commit comments

Comments
 (0)