Skip to content

update

update #5

Workflow file for this run

name: Deploy to GitHub Pages
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install dependencies
run: pip install "jupyter-book<2" ghp-import
- name: Build site
run: |
rm -rf _build/
jupyter-book build . 2>&1
if [ ! -d "_build/html" ]; then
echo "ERROR: _build/html directory not found — build likely failed"
exit 1
fi
- name: Copy CNAME
run: cp CNAME _build/html/
- name: Deploy to GitHub Pages
run: ghp-import -n -p -f _build/html
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}