Skip to content

Commit d1e029e

Browse files
committed
Add -n -W flags to jb build commands to catch errors as build failures
1 parent 9ea02e8 commit d1e029e

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

.github/workflows/cache.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
- name: Build HTML
4040
shell: bash -l {0}
4141
run: |
42-
jb build lectures --path-output ./ --keep-going
42+
jb build lectures --path-output ./ -n -W --keep-going
4343
- name: Upload Execution Reports (HTML)
4444
uses: actions/upload-artifact@v4
4545
if: failure()

.github/workflows/ci.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,14 @@ jobs:
3838
- name: Display Pip Versions
3939
shell: bash -l {0}
4040
run: pip list
41-
# - name: Download "build" folder (cache)
42-
# uses: dawidd6/action-download-artifact@v9
43-
# with:
44-
# workflow: cache.yml
45-
# branch: main
46-
# name: build-cache
47-
# path: _build
48-
# # Build Assets (Download Notebooks and PDF via LaTeX)
41+
- name: Download "build" folder (cache)
42+
uses: dawidd6/action-download-artifact@v9
43+
with:
44+
workflow: cache.yml
45+
branch: main
46+
name: build-cache
47+
path: _build
48+
# Build Assets (Download Notebooks and PDF via LaTeX)
4949
# - name: Build PDF from LaTeX
5050
# shell: bash -l {0}
5151
# run: |
@@ -71,7 +71,7 @@ jobs:
7171
- name: Build HTML
7272
shell: bash -l {0}
7373
run: |
74-
jb build lectures --path-output ./ --keep-going
74+
jb build lectures --path-output ./ -n -W --keep-going
7575
- name: Upload Execution Reports (HTML)
7676
uses: actions/upload-artifact@v4
7777
if: failure()

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ jobs:
7171
- name: Build HTML
7272
shell: bash -l {0}
7373
run: |
74-
jb build lectures --path-output ./
74+
jb build lectures --path-output ./ -n -W --keep-going
7575
# Create HTML archive for release assets
7676
- name: Create HTML archive
7777
shell: bash -l {0}

0 commit comments

Comments
 (0)