Skip to content

Commit 936c5f0

Browse files
update
1 parent c9f48c3 commit 936c5f0

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,14 @@ jobs:
2424
- name: Build site
2525
run: |
2626
rm -rf _build/
27-
jupyter-book build .
28-
cp CNAME _build/html
27+
jupyter-book build . 2>&1
28+
if [ ! -d "_build/html" ]; then
29+
echo "ERROR: _build/html directory not found — build likely failed"
30+
exit 1
31+
fi
32+
33+
- name: Copy CNAME
34+
run: cp CNAME _build/html/
2935

3036
- name: Deploy to GitHub Pages
3137
run: ghp-import -n -p -f _build/html

0 commit comments

Comments
 (0)