Skip to content

Commit a8df176

Browse files
committed
Upload zipped artifact even if the previous step fails
This lets us show previews even when the run itself fails
1 parent 680c1b4 commit a8df176

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/ci_publish.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,15 @@ jobs:
4141
run: tox -e py312-buildhtml
4242

4343
- name: Zip up the entire directory to upload as an artifact
44+
# Run this even if previous step fails, so we can preview the run output
45+
if: always()
4446
run: |
4547
zip -r full-book.zip .
4648
4749
- name: Upload zipped full book artifact
4850
uses: actions/upload-artifact@v6
51+
# Run this even if previous step fails, so we can preview the run output
52+
if: always()
4953
with:
5054
name: full-book
5155
path: ./full-book.zip

0 commit comments

Comments
 (0)