Skip to content

Commit 9bce1e1

Browse files
fix: upload all assets even if some fail
1 parent d1b2ac8 commit 9bce1e1

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,12 @@ jobs:
113113
fi
114114
gh release create "v$VERSION" --title "v$VERSION" --generate-notes
115115
shopt -s nullglob
116-
for f in artifacts/*/*; do
117-
echo "Uploading $f"
118-
gh release upload "v$VERSION" "$f" --clobber
116+
ASSETS=(artifacts/*/*)
117+
echo "Found ${#ASSETS[@]} artifacts:"
118+
for f in "${ASSETS[@]}"; do
119+
echo " - $f"
120+
done
121+
for f in "${ASSETS[@]}"; do
122+
echo "Uploading $f..."
123+
gh release upload "v$VERSION" "$f" --clobber || echo "Failed to upload $f"
119124
done

0 commit comments

Comments
 (0)