-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (45 loc) · 1.2 KB
/
main.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
name: release
on:
push:
branches:
- master
jobs:
release:
name: Build documentation
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.9'
- name: Cache dependencies
uses: actions/[email protected]
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-py3.9-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install graphviz
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Build sphinx documentation
run: |
cd docs
make html
cd _build/html
touch .nojekyll
- name: Push to gh-pages
env:
PERSONAL_TOKEN: ${{ secrets.PAGES_TOKEN }}
PUBLISH_BRANCH: gh-pages
PUBLISH_DIR: docs/_build/html
SCRIPT_MODE: true
INPUT_EMPTYCOMMITS: false
run: |
wget https://raw.githubusercontent.com/peaceiris/actions-gh-pages/v2.9.0/entrypoint.sh
bash ./entrypoint.sh