-
Notifications
You must be signed in to change notification settings - Fork 5
49 lines (41 loc) · 1.07 KB
/
docs.yml
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
40
41
42
43
44
45
46
47
48
49
#
# Publish Documentation to GitHub pages.
#
name: Publish Documentation
on:
release:
types: [ published ]
# Allows running this workflow manually from the Actions tab
workflow_dispatch:
jobs:
documentation:
name: Publish Documentation
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Cache dependencies
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-docs-${{ hashFiles('pyproject.toml') }}
restore-keys: |
${{ runner.os }}-docs-
- name: Install dependencies
run: |
python -m pip install -e .[docs]
- name: Sphinx make
run: |
cd ./docs
make html
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/_build/html