From b9941d2ecf0fab043863368941a079f0f579b3ed Mon Sep 17 00:00:00 2001 From: Lena <126529524+acuteenvy@users.noreply.github.com> Date: Thu, 25 Apr 2024 07:03:17 +0200 Subject: [PATCH] fix: allow CI to run when PDFs haven't been generated (#12669) --- scripts/deploy.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/deploy.sh b/scripts/deploy.sh index bb49a9557..f582c8dc1 100755 --- a/scripts/deploy.sh +++ b/scripts/deploy.sh @@ -49,12 +49,15 @@ function upload_assets { git push -q echo "Assets (pages archive, index and checksums) deployed to the static site." + # Suppress errors from unmatched patterns if some files don't exist. + shopt -s nullglob gh release --repo tldr-pages/tldr upload --clobber "$RELEASE_TAG" -- \ tldr.sha256sums \ "$TLDR_ARCHIVE" \ "$INDEX" \ "$LANG_ARCHIVES/"*.zip \ "$PDFS/"*.pdf + shopt -u nullglob echo "Assets deployed to GitHub releases." }