Skip to content

Commit 85713bd

Browse files
Doc generation github action
1 parent c8f6319 commit 85713bd

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

.github/workflows/CI.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,28 @@ permissions:
1919
contents: read
2020

2121
jobs:
22+
docs:
23+
runs-on: ubuntu-latest
24+
steps:
25+
- uses: actions/checkout@v4
26+
- uses: actions/setup-python@v5
27+
with:
28+
python-version: 3.x
29+
- uses: PyO3/maturin-action@v1
30+
with:
31+
command: develop
32+
- name: Install dependencies
33+
run: |
34+
pip install sphinx sphinx_rtd_theme
35+
- name: Sphinx build
36+
run: |
37+
sphinx-build docs/source _build
38+
- name: Deploy to GitHub Pages
39+
uses: peaceiris/actions-gh-pages@v4
40+
with:
41+
github_token: ${{ secrets.GITHUB_TOKEN }}
42+
publish_dir: _build/
43+
2244
linux:
2345
runs-on: ${{ matrix.platform.runner }}
2446
strategy:

0 commit comments

Comments
 (0)