CI2 #1015
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/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 |