Skip to content

Commit 89e40ce

Browse files
committed
updates
1 parent 9a89023 commit 89e40ce

1 file changed

Lines changed: 9 additions & 8 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,38 +3,39 @@ name: deploy-book
33
on:
44
push:
55
branches:
6-
- main
6+
- main
77

88
jobs:
99
deploy-book:
1010
runs-on: ubuntu-latest
1111
steps:
12+
# 1️⃣ Checkout the repository
1213
- uses: actions/checkout@v2
1314

14-
# Set up Python 3.11 (needed for latest packages)
15+
# 2️⃣ Set up Python 3.11
1516
- name: Set up Python
1617
uses: actions/setup-python@v4
1718
with:
1819
python-version: 3.11
1920

20-
# Install system dependencies required by PyTables
21+
# 3️⃣ Install system dependencies (needed by PyTables)
2122
- name: Install system dependencies
2223
run: |
2324
sudo apt-get update
2425
sudo apt-get install -y libhdf5-dev build-essential python3-dev
2526
26-
# Install Python dependencies
27+
# 4️⃣ Install Python dependencies
2728
- name: Install dependencies
2829
run: |
2930
python -m pip install --upgrade pip wheel setuptools
3031
pip install -r requirements.txt
3132
32-
# Build the book
33-
- name: Build the book
33+
# 5️⃣ Build the Jupyter Book (using python -m to ensure it works in venv)
34+
- name: Build the Jupyter Book
3435
run: |
35-
jupyter-book build --config _config.yml --toc _toc.yml .
36+
python -m jupyter_book build --config _config.yml --toc _toc.yml .
3637
37-
# Push to GitHub Pages
38+
# 6️⃣ Deploy to GitHub Pages
3839
- name: GitHub Pages action
3940
uses: peaceiris/actions-gh-pages@v3.6.1
4041
with:

0 commit comments

Comments
 (0)