Skip to content

Commit 6feb44f

Browse files
Add GitHub Actions deploy workflow for Jupyter Book
1 parent 8b305fe commit 6feb44f

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Deploy Jupyter Book to GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
deploy:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: 📥 Checkout repository
13+
uses: actions/checkout@v4
14+
15+
- name: 🧪 Set up Python
16+
uses: actions/setup-python@v5
17+
with:
18+
python-version: '3.10'
19+
20+
- name: 📦 Install dependencies
21+
run: |
22+
pip install -U pip
23+
pip install jupyter-book ghp-import
24+
25+
- name: 🏗️ Build the Jupyter Book
26+
run: |
27+
jupyter-book build .
28+
29+
- name: 🚀 Deploy to GitHub Pages
30+
run: |
31+
ghp-import -n -p -f _build/html

0 commit comments

Comments
 (0)