Skip to content

CI2

CI2 #1014

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@v2
with:
environment-file: ci/environment.yml
environment-name: dev-feisty
create-args: python=3.11
- 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/actions-gh-pages@v3.6.1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/_build/html