From cef10d5a0bdc693382935088fbc9d901f67083b3 Mon Sep 17 00:00:00 2001 From: Matt Knight Date: Wed, 6 Nov 2024 22:45:23 -0800 Subject: [PATCH] ignore error if release doesn't have artifact (#276) --- .github/workflows/publish-github-pages.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish-github-pages.yml b/.github/workflows/publish-github-pages.yml index 1e34097c..0880ad63 100644 --- a/.github/workflows/publish-github-pages.yml +++ b/.github/workflows/publish-github-pages.yml @@ -46,7 +46,9 @@ jobs: mkdir -p zig-out/www/downloads/microzig # Download the artifact 'boxzer-out.tar.gz' if it exists - gh release download "$release" --pattern "boxzer-out.tar.gz" --repo ${{ github.repository }} --dir . + if ! gh release download "$release" --pattern "boxzer-out.tar.gz" --repo ${{ github.repository }} --dir . ; then + # Continue if it fails + fi # Check if the tarball was downloaded and unpack it if [ -f "boxzer-out.tar.gz" ]; then