Bump GitHub Actions #219
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Build the book and upload it to GitHub Artifacts for inspection in a PR | |
name: build | |
# Run on every pull request | |
on: | |
pull_request: | |
branches: '*' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
# Install dependencies | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.x | |
- uses: actions/cache@v4 | |
with: | |
path: ~/.cache/pip | |
key: ${{ runner.os }}-pip-${{ hashFiles('**/*.md') }} | |
restore-keys: | | |
${{ runner.os }}-pip- | |
- name: Install dependencies | |
run: | | |
pip install jupyter-book | |
# Build the book | |
- name: Build the book | |
run: | | |
jupyter-book build . | |
# Upload artifact | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: html_docs | |
path: ./_build/html |