-
Notifications
You must be signed in to change notification settings - Fork 8
35 lines (29 loc) · 772 Bytes
/
publish.yml
File metadata and controls
35 lines (29 loc) · 772 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
name: Publish the book
on:
workflow_dispatch:
push:
branches:
- winter2025
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.9
uses: actions/setup-python@v1
with:
python-version: 3.9
- name: Build the documentation with Sphinx
run: |
pip install -r requirements.txt
jupyter-book build .
# 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