Skip to content

CI2

CI2 #996

Workflow file for this run

name: CI2
on:
push:
branches:
- 'main'
schedule:
- cron: '0 0 * * *' # Daily “At 00:00”
workflow_dispatch: # allows you to trigger manually
jobs:
build-docs-push-ghpages:
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash -l {0}
strategy:
matrix:
os: [ubuntu-latest]
# python-version: [3.8]
steps:
- uses: actions/checkout@v2
# Install dependencies
- name: Set up conda environment with micromamba
uses: mamba-org/setup-micromamba@main
with:
environment-file: ci/environment.yml
environment-name: dev-feisty
extra-specs: python=${{ matrix.python-version }}
- name: Show conda environment
shell: bash -l {0}
run: |
conda list
# Build the book
- name: Build the book
run: |
jupyter-book build docs/ --all
# Deploy the book's HTML to gh-pages branch
- name: GitHub Pages action
uses: peaceiris/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/_build/html