-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (34 loc) · 988 Bytes
/
sphinx.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
# github workflow for building sphinx docs
name: Build and Deploy Sphinx Docs
on:
push:
branches:
- master
jobs:
build:
permissions:
contents: write
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v3
- name: Install dependencies
run: |
pip install sphinx_rtd_theme myst-parser sphinx-copybutton
- name: Build docs
run: |
sphinx-build . _build
- name: Upload docs
uses: actions/upload-artifact@v2
with:
name: HTML Docs
path: _build/html
- name: Deploy docs
uses: peaceiris/actions-gh-pages@v3
with:
publish_branch: gh-pages
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: _build/
force_orphan: true