-
Notifications
You must be signed in to change notification settings - Fork 3
41 lines (38 loc) · 1.1 KB
/
sphinx.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
name: build-sphinx-to-gh-pages
on:
push:
branches:
- master
jobs:
build_sphinx_job:
runs-on: ubuntu-latest
steps:
- name: Set up Python 3.11
uses: actions/setup-python@v1
with:
python-version: "3.11"
- name: Install apt dependencies
run: |
sudo apt-get update
sudo apt-get install -y libopenmpi-dev openmpi-bin libhdf5-serial-dev
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Install pip requirements
run: |
pip install -r requirements.txt
pip install -r doc/requirements.txt
pip install .
- name: Sphinx build
run: |
git checkout -b gh-pages
mkdir docs
sphinx-build -b html doc/ docs
touch docs/.nojekyll
- name: Commit site
run: |
git config --global user.name 'Rick Nitsche (automated)'
git config --global user.email '[email protected]'
git add .
git commit -am "Automated sphinx build"
git push --force origin gh-pages