Skip to content

Commit 199780f

Browse files
committed
Generate notebooks before HTML build to ensure download links work correctly
1 parent eb6c442 commit 199780f

2 files changed

Lines changed: 10 additions & 6 deletions

File tree

.github/workflows/auto-merge.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,14 @@ jobs:
3535
- name: Install MyST Markdown
3636
run: npm install -g mystmd
3737

38+
- name: Generate Jupyter Notebooks
39+
run: |
40+
mkdir -p _build/html/notebooks
41+
python generate_notebooks.py
42+
3843
- name: Build HTML Assets (execute)
3944
run: myst build --execute --html
4045

41-
- name: Generate Jupyter Notebooks
42-
run: python generate_notebooks.py
43-
4446
- name: Merge to main
4547
if: success()
4648
run: |

.github/workflows/deploy.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,11 @@ jobs:
6262
COMMIT_SHA=$(git rev-parse --short HEAD)
6363
sed -i "s/COMMIT_HASH/${COMMIT_SHA}/g" footer.md
6464
65+
- name: Generate Jupyter Notebooks
66+
run: |
67+
mkdir -p _build/html/notebooks
68+
python generate_notebooks.py
69+
6570
- name: Build HTML Assets (execute)
6671
uses: nick-fields/retry@v3
6772
with:
@@ -70,9 +75,6 @@ jobs:
7075
retry_on: timeout
7176
command: myst build --execute --html
7277

73-
- name: Generate Jupyter Notebooks
74-
run: python generate_notebooks.py
75-
7678
- name: Generate Sitemap
7779
run: |
7880
python generate_sitemap.py

0 commit comments

Comments
 (0)