-
Notifications
You must be signed in to change notification settings - Fork 51
50 lines (41 loc) · 1.18 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
50
name: Docs
on:
workflow_dispatch:
push:
branches:
- master
- v*
jobs:
deploy-documentation:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install requirements
run: |
sudo apt-get update -y
sudo apt-get install graphviz -y
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
python -m pip install -r requirements_developers.txt
- name: Generate diagrams
run: python docs/fsm/graphviz/draw_state_diagrams.py
- name: Build documentation
uses: ammaraskar/sphinx-action@master
with:
docs-folder: docs/
pre-build-command: |
mkdir -p docs/build/
touch docs/build/.nojekyll
python -m pip install -r requirements_developers.txt
build-command: sphinx-build -b html . build
- name: Deploy documentation
uses: JamesIves/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages
folder: docs/build