forked from inria-thoth/cyanure
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (36 loc) · 1.22 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: Sphinx build
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python environment
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Update pip and install openblas
run: |
python -m pip install --upgrade pip && sudo apt-get upgrade && sudo apt-get install -y libopenblas-dev
- name: Install the package your documenting together with its dependencies.
run: |
pip install .
- name: Install the building dependencies.
# With higher version of docutils bullet lists does not work
run: |
pip install sphinx ipywidgets beautifulsoup4 sphinx-rtd-theme numpydoc furo autodocsumm docutils==0.16.0
- name: Build the sphinx documentation and posts warnings as github comments.
run: cd docs/sphinx/source && sphinx-build -b html . _build
- name: Upload artifacts
uses: actions/upload-artifact@v1
with:
name: html-docs
path: docs/sphinx/source/_build/
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/sphinx/source/_build/