Skip to content

Merge branch 'release/0.3.0' #7

Merge branch 'release/0.3.0'

Merge branch 'release/0.3.0' #7

Workflow file for this run

# This workflow will build a Jupyter Book and deploy it to GitHub Pages
# when a push is made to the `master` or `main` branch.
name: Deploy Jupyter Book to GitHub Pages
on:
push:
branches:
- master
- main
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: 3.12.7
- name: Install dependencies
run: |
pip install -r requirements.dev.txt && pip install .
- name: Cache Executed Notebooks
uses: actions/cache@v3
with:
path: _build/.jupyter_cache
key: jupyter-book-cache-${{ hashFiles('requirements.dev.txt') }}
- name: Build the book
run: |
jupyter-book build .
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: "_build/html"
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4