-
-
Notifications
You must be signed in to change notification settings - Fork 47
32 lines (32 loc) · 956 Bytes
/
Copy pathdocumentation.yaml
File metadata and controls
32 lines (32 loc) · 956 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: Docs
on:
push:
branches: [main]
workflow_dispatch:
permissions:
contents: write
jobs:
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- name: Install uv
uses: astral-sh/setup-uv@v8.2.0
- name: Set up Python
run: uv python install 3.12
- name: Install dependencies
run: |
uv venv
uv pip install sphinx "sphinx_rtd_theme<3" myst-parser
uv pip install -e .
- name: Sphinx build
run: |
uv run sphinx-build docs _build
- name: Deploy
uses: peaceiris/actions-gh-pages@v4
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
with:
publish_branch: gh-pages
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: _build/
force_orphan: true