Skip to content

stavrina is pushing an update 🌳 #43

stavrina is pushing an update 🌳

stavrina is pushing an update 🌳 #43

Workflow file for this run

name: deploy
run-name: ${{ github.actor }} is pushing an update 🌳
on:
# Trigger the workflow on push to main branch
push:
branches:
- main
# This job installs dependencies, build the book, and pushes it to `gh-pages`
jobs:
build-and-deploy-book:
runs-on: ${{ matrix.os }}
permissions: write-all
strategy:
matrix:
os: [ubuntu-latest]
python-version: [3.9.17]
steps:
- uses: actions/checkout@v4
# Install dependencies
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install -r requirements.txt
# Build the book
- name: Build the book
run: |
jupyter-book build handbook
# Deploy the book's HTML to gh-pages branch
- name: Deploy to GitHub pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: handbook/_build/html