-
Notifications
You must be signed in to change notification settings - Fork 17
43 lines (36 loc) · 1.04 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
name: Build and Deploy
on:
release:
types: [published]
pull_request:
types: [opened, synchronize, reopened]
permissions:
contents: write
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Build
run: |
sudo apt-get install graphviz
pip install -r requirements-docs.txt
sphinx-build -j 4 -T -b html docs/source docs/build/html
- name: Deploy Stable 🚀
if: github.event_name == 'release'
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: docs/build/html
branch: gh-pages
- name: Deploy Dev 🚀
if: (github.event_name == 'pull_request') || (github.event_name == 'push')
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: docs/build/html
branch: gh-pages
target-folder: dev