Skip to content

Commit 56614ec

Browse files
authored
Update deploy.yml
1 parent 25433f6 commit 56614ec

1 file changed

Lines changed: 19 additions & 3 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,35 @@ jobs:
1616
uses: actions/setup-python@v4
1717
with:
1818
python-version: '3.12'
19+
20+
- name: Install Jupyter Book
21+
run: |
22+
pip install --upgrade pip
23+
pip install jupyter-book
24+
25+
- name: Verify correct executable
26+
run: |
27+
which jupyter-book
28+
jupyter-book --version
29+
python -m jupyter_book --version
30+
1931
- name: Install system dependencies (Graphviz)
2032
run: |
2133
sudo apt-get update
2234
sudo apt-get install -y graphviz graphviz-dev
35+
2336
- name: Install dependencies
2437
run: |
2538
python -m pip install --upgrade pip
2639
python -m pip install graphviz pygraphviz
2740
python -m pip install ".[doc,dev]"
28-
pip install jupyter-book ghp-import matplotlib gdmloader
41+
pip install ghp-import matplotlib gdmloader
2942
30-
- name: Build the book
31-
run: jupyter-book build docs/ --builder html
43+
- name: Clean old builds
44+
run: rm -rf docs/_build
45+
46+
- name: Build Jupyter Book
47+
run: jupyter-book build docs/
3248

3349
- name: Deploy to GitHub Pages
3450
run: |

0 commit comments

Comments
 (0)