-
Notifications
You must be signed in to change notification settings - Fork 24
55 lines (50 loc) · 1.46 KB
/
documentation.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
47
48
49
50
51
52
53
54
name: Deploy Documentation
on:
push:
branches: [main]
env:
CARGO_TERM_COLOR: always
jobs:
build-documentation:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup python
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install pandoc
run: sudo apt-get install -y pandoc
- name: Install python dependencies
run: |
pip install sphinx nbsphinx ipython pygments sphinx_inline_tabs sphinx_design sphinx_copybutton myst_parser furo
- name: Build Wheels
uses: messense/maturin-action@v1
with:
manylinux: auto
command: build
args: --release --out dist
- name: Install module
run: |
pip install feos --no-index --find-links dist --force-reinstall
- name: Build documentation
run: sphinx-build docs/ public/ -b html
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: documentation
path: public
release-documentation:
needs: [build-documentation]
runs-on: ubuntu-latest
steps:
- name: Download artifacts
uses: actions/download-artifact@v1
with:
name: documentation
path: public
- name: Deploy documentation to gh-pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public