Skip to content

Commit babb243

Browse files
committed
check doc deploy
1 parent 3c5c297 commit babb243

File tree

1 file changed

+21
-8
lines changed

1 file changed

+21
-8
lines changed

.github/workflows/gh-pages.yml

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,33 @@ on:
44
release:
55
types:
66
- created
7+
push:
8+
branches:
9+
- main
710

811
jobs:
9-
job:
10-
name: GitHub Pages
12+
build-docs:
1113
runs-on: ubuntu-latest
14+
15+
permissions:
16+
contents: write
17+
pages: write
18+
id-token: write
19+
1220
steps:
1321
- uses: actions/checkout@v4
14-
- uses: actions/setup-python@v5
22+
23+
- uses: prefix-dev/[email protected]
1524
with:
16-
python-version: "3.13"
17-
- name: Install project dependencies
18-
run: pip install -e ".[dev]"
19-
- name: Build docs
20-
run: python -m sphinx -b html docs docs/_build
25+
pixi-version: v0.49.0
26+
frozen: true
27+
28+
- name: Install doc env
29+
run: pixi install -a
30+
31+
- name: Build documentation.
32+
run: |
33+
pixi run -e dev doc_build
2134
- name: Deploy docs
2235
uses: peaceiris/actions-gh-pages@v3
2336
with:

0 commit comments

Comments
 (0)