Merge pull request #50 from fkroeber/fix #80
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |