Skip to content

Testing utterances

Testing utterances #7

Workflow file for this run

name: build-deploy-book
# Only run this when the master branch changes
on:
workflow_dispatch:
push:
branches:
- jupyterbook
permissions:
contents: read
pages: write
id-token: write
# This job installs dependencies, build the book, and pushes it to `gh-pages`
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
steps:
- name: Checkout
uses: actions/checkout@v4
# Install dependencies
# Install Mambaforge
- name: Setup Jupyterbook
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@v3
with:
path: "_build/html"
deploy:
needs: build
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
# Deploy the book's HTML to GitHub Pages
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4