Skip to content

Commit 7ff2372

Browse files
committed
Initial commit: textbook scaffold + workflow
1 parent faba621 commit 7ff2372

1 file changed

Lines changed: 40 additions & 0 deletions

File tree

.github/workflows/deploy-book.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: deploy-book
2+
on:
3+
push:
4+
branches: [ main ]
5+
pull_request:
6+
permissions:
7+
contents: read
8+
pages: write
9+
id-token: write
10+
concurrency:
11+
group: "pages"
12+
cancel-in-progress: true
13+
jobs:
14+
build:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v4
18+
- uses: actions/setup-python@v5
19+
with:
20+
python-version: "3.11"
21+
- name: Install dependencies
22+
run: |
23+
python -m pip install --upgrade pip
24+
pip install -r requirements.txt
25+
- name: Build Jupyter Book (force execute)
26+
run: |
27+
jupyter-book build . --all
28+
- name: Upload artifact
29+
uses: actions/upload-pages-artifact@v3
30+
with:
31+
path: _build/html
32+
deploy:
33+
needs: build
34+
environment:
35+
name: github-pages
36+
url: ${{ steps.deployment.outputs.page_url }}
37+
runs-on: ubuntu-latest
38+
steps:
39+
- id: deployment
40+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)