Skip to content

DOCS

DOCS #1081

Workflow file for this run

name: DOCS
on:
push:
branches:
- "master"
- "maintenance/.+"
pull_request:
branches:
- "master"
- "maintenance/.+"
schedule:
# Run a cron job once daily
- cron: "0 0 * * *"
jobs:
mkdocs:
name: Docs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: conda-incubator/setup-miniconda@v2
with:
installer-url: https://github.com/conda-forge/miniforge/releases/latest/download/Mambaforge-Linux-x86_64.sh
python-version: "3.7"
activate-environment: test
channel-priority: true
environment-file: devtools/conda-envs/docs_env.yaml
auto-activate-base: false
use-mamba: true
- name: Additional info about the build
shell: bash
run: |
uname -a
df -h
ulimit -a
- name: Environment Information
shell: bash -l {0}
run: |
conda info --all
conda list
- name: Build docs
shell: bash -l {0}
run: |
cd docs
make clean
SPHINXOPTS="-T --keep-going" make html
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/_build/html
if: github.ref == 'refs/heads/master'