Skip to content

Updating Chapter 1 heading and laying out Chapter 2 content #19

Updating Chapter 1 heading and laying out Chapter 2 content

Updating Chapter 1 heading and laying out Chapter 2 content #19

Workflow file for this run

# GitHub Actions workflow to build and deploy a Jupyter Book to GitHub Pages
# This workflow runs when changes are pushed to the main branch
# It sets up Python, installs dependencies, builds the book, and deploys it
name: deploy-book
on:
push:
branches:
- main
jobs:
deploy-book:
runs-on: ubuntu-latest
permissions:
contents: write
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Build the book
run: |
ls -la chapters/
jupyter-book config sphinx .
jupyter-book build . --verbose 2>&1 | tee build.log
cat build.log
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: '_build/html'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4