-
Notifications
You must be signed in to change notification settings - Fork 8
47 lines (37 loc) · 992 Bytes
/
build_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
name: Build the documentation
on:
workflow_dispatch:
push:
pull_request:
branches: [main]
permissions:
contents: write
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout the branch
uses: actions/checkout@v3
with:
persist-credentials: false
- name: Set up Python 3.9
uses: actions/setup-python@v3
with:
python-version: 3.9
- name: Install dependencies
run: |
pip install sphinx sphinx_rtd_theme myst_parser
- name: Install PyJuice
run: |
pip install -e .
- name: Build the documentation with Sphinx
run: |
sphinx-build -b html docs/source docs/build/html
- name: Publish the documentation
uses: JamesIves/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: docs/build/html
CLEAN: true