-
Notifications
You must be signed in to change notification settings - Fork 21
37 lines (31 loc) · 838 Bytes
/
Copy pathpublish.yml
File metadata and controls
37 lines (31 loc) · 838 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Publish the book
on:
workflow_dispatch:
push:
branches:
- spring2026
jobs:
publish:
name: Publish
runs-on: ubuntu-latest
steps:
- name: Checkout the branch
uses: actions/checkout@v2.3.1
with:
persist-credentials: false
- name: Set up Python 3.13
uses: actions/setup-python@v1
with:
python-version: 3.13
- name: Build the book
env:
BASE_URL: /${{ github.event.repository.name }}
run: |
pip install -r requirements.txt
jupyter book build --execute --html
# Push the book's HTML to github-pages
- name: GitHub Pages action
uses: peaceiris/actions-gh-pages@v3.6.1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./_build/html