-
Notifications
You must be signed in to change notification settings - Fork 28
40 lines (40 loc) · 1.23 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
name: Docs
on: [push, pull_request]
jobs:
build-docs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository and submodules
uses: actions/checkout@v3
with:
submodules: recursive
- name: Setup Python 3.x
uses: actions/setup-python@v2
with:
python-version: "3.x"
- name: Install pandoc
run: |
sudo apt-get update
sudo apt-get install pandoc
- name: Install doc requirements
run: |
python -m pip install --upgrade pip
pip install -r doc_requirements.txt
- name: Install MPI
uses: mpi4py/setup-mpi@v1
- name : Install Bingo requirements (for tutorials)
run: |
pip install -r requirements.txt
- name: Set safe forking var
run: |
echo "RDMAV_FORK_SAFE=1" >> $GITHUB_ENV
- name: Build docs
run: |
sphinx-apidoc -f -o docs/source/_apidocs bingo
sphinx-build -b html docs/source/ docs/build/html
- name: Deploy to gh-pages branch
uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/main'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/build/html