Skip to content

-

- #55

Workflow file for this run

name: Deploy Jupyter Book
on:
# Trigger on push to main branch
push:
branches:
- main
# Allow manual trigger from the Actions tab
workflow_dispatch:
jobs:
deploy-book:
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install dependencies
run: |
pip install -U pip
pip install "jupyter-book<1.0"
pip install -r binder/requirements.txt
- name: Build the book
run: |
jupyter-book build . --all
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: _build/html
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4