-
Notifications
You must be signed in to change notification settings - Fork 18
39 lines (32 loc) · 933 Bytes
/
docs.yaml
File metadata and controls
39 lines (32 loc) · 933 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
33
34
35
36
37
38
39
name: Documentation
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
version: "latest"
- name: Install the project
run: uv sync --group docs
- name: Generate docstring coverage badge
run: uv run docstr-coverage src --badge docs/source/_static
- name: Build Sphinx documentation
run: uv run sphinx-build docs/source/ docs/_build/
- name: Deploy to GitHub Pages
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: docs/_build/
force_orphan: true