-
Notifications
You must be signed in to change notification settings - Fork 13
36 lines (33 loc) · 1.01 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
name: docs
on: [push, pull_request, workflow_dispatch]
permissions:
contents: write
jobs:
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
python-version: "3.9"
activate-environment: test
channels: conda-forge, defaults
- name: Install dependencies
shell: bash -l {0}
run: |
conda install nbconvert>=6.4.3 sphinx sphinx_rtd_theme nbsphinx pandoc
python -m pip install --upgrade pip
pip install .
- name: Sphinx build
shell: bash -l {0}
run: |
sphinx-build docs _build
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
with:
publish_branch: gh-pages
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: _build/
force_orphan: true