Skip to content

Caching

Caching #4

Workflow file for this run

name: deploy-book
# Only run this when the master branch changes
on:
workflow_dispatch:
push:
branches:
- jupyterbook
# This job installs dependencies, build the book, and pushes it to `gh-pages`
jobs:
deploy-book:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v4
# Install dependencies
# Install Mambaforge
- uses: conda-incubator/setup-miniconda@v3
with:
environment-file: binder/conda/environment.yml
mamba-version: "*"
# Build the book
- name: Build the book
run: |
jupyter-book build .
# Upload the book's HTML as an artifact
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: "_build/html"
# Deploy the book's HTML to GitHub Pages
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2