-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (43 loc) · 1.05 KB
/
sphinx.yml
File metadata and controls
51 lines (43 loc) · 1.05 KB
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
50
51
name: Docs
on:
workflow_dispatch:
workflow_call:
pull_request:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-22.04
permissions:
contents: write
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- uses: actions/setup-python@v6
with:
python-version: '3.12'
- name: Add python requirements
run: |
python -m pip install --upgrade pip
pip install tox
- name: Build docs
run: |
tox -e ldocs
tox -e docs
- uses: actions/upload-artifact@v7
with:
name: ApiDocsHTML
path: "docs/_build/html/"
- name: set nojekyll for github
run: |
sudo touch docs/_build/html/.nojekyll
- name: Deploy docs to gh-pages
if: ${{ github.event_name == 'push' }}
uses: JamesIves/github-pages-deploy-action@d92aa235d04922e8f08b40ce78cc5442fcfbfa2f # v4.8.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages
folder: docs/_build/html/
single-commit: true