-
Notifications
You must be signed in to change notification settings - Fork 16
38 lines (35 loc) · 1.01 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
name: build-sphinx-to-gh-pages
on:
push:
branches:
- master
jobs:
build_sphinx_job:
runs-on: ubuntu-latest
steps:
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install apt dependencies
run: |
sudo apt-get update
sudo apt-get install -y libhdf5-serial-dev libopenmpi-dev openmpi-bin
- uses: actions/checkout@v4
- name: Install pip requirements
run: |
pip install -e .
pip install -e .[docs]
- 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