Merge pull request #18 from janash/color-adjustment #8
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: docs | |
on: | |
# GitHub has started calling new repo's first branch "main" https://github.com/github/renaming | |
# Existing codes likely still have "master" as the primary branch | |
# Both are tracked here to keep legacy and new codes working | |
push: | |
branches: | |
- "main" | |
jobs: | |
build: | |
name: Build Documentation | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Additional info about the build | |
shell: bash | |
run: | | |
uname -a | |
df -h | |
ulimit -a | |
# More info on options: https://github.com/conda-incubator/setup-miniconda | |
- uses: conda-incubator/[email protected] | |
with: | |
python-version: 3.11 | |
environment-file: docs/requirements.yaml | |
channels: conda-forge,defaults | |
activate-environment: docs | |
auto-update-conda: false | |
auto-activate-base: false | |
show-channel-urls: true | |
- name: Install package | |
# conda setup requires this special shell | |
shell: bash -l {0} | |
run: | | |
python -m pip install . --no-deps | |
conda list | |
- name: Build HTML | |
shell: bash -l {0} | |
run: | | |
cd docs/ | |
make html | |
- name: Deploy Documentation | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
folder: docs/_build/html |