-
Notifications
You must be signed in to change notification settings - Fork 8
46 lines (44 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
39
40
41
42
43
44
45
46
name: Sphinx build
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2
- name: setup-conda-environment
uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: semantique
- name: install-package-requirements
shell: bash -l {0}
run: |
conda config --add channels conda-forge
conda config --set channel_priority strict
conda install geocube datacube
- name: install-package
shell: bash -l {0}
run: |
pip install -e .
- name: install-build-requirements
shell: bash -l {0}
run: |
sudo apt-get install -y pandoc
pip install -r ./docs/requirements.txt
- name: copy-figures
shell: bash -l {0}
run: |
cp -r ./demo/figures/ ./docs/source/_notebooks/figures/
- name: build
shell: bash -l {0}
run: |
sphinx-build -b html ${SOURCE_DIR} ${BUILD_DIR}
env:
SOURCE_DIR: ./docs/source
BUILD_DIR: ./docs/build
- name: deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/build
publish_branch: gh-pages