Skip to content

clean up and ignore certain nbs (#47) #23

clean up and ignore certain nbs (#47)

clean up and ignore certain nbs (#47) #23

Workflow file for this run

name: Deploy JupyterBook to GitHub pages
on:
push:
branches: [main]
paths:
- "notebooks/**"
- "book/**"
- "ci/envs/311-book.yaml"
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
defaults:
run:
shell: bash -l {0}
jobs:
BuildBook:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Micromamba
uses: mamba-org/setup-micromamba@v1
with:
environment-file: ci/envs/311-book.yaml
# Copy notebooks to book notebooks directory
- name: Prepare notebooks for book
run: |
rsync -av --delete notebooks/ book/notebooks/
# Build the JupyterBook
- name: Build JupyterBook
run: |
jupyter-book build book/
- name: Deploy html files
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages
publish_dir: book/_build/html