CI2 #577
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: 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/provision-with-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 |