Skip to content
This repository was archived by the owner on Feb 11, 2026. It is now read-only.

Commit 520f440

Browse files
author
Emma Hintsala
committed
Add github actions file
1 parent eb9b7f3 commit 520f440

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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+
12+
steps:
13+
- uses: actions/checkout@v3
14+
15+
- name: Set up Python
16+
uses: actions/setup-python@v4
17+
with:
18+
python-version: '3.x'
19+
20+
- name: Install dependencies
21+
run: |
22+
pip install "jupyter-book<2" "ghp-import==2.1.0"
23+
# Add any other dependencies your notebooks need here
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
32+
env:
33+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)