feat: allow skipping assets

This commit is contained in:
Michael Kriese 2026-01-21 09:29:35 +01:00
parent f5b4441975
commit e75cfe89a2
No known key found for this signature in database
GPG key ID: F8D7748549A5986A
3 changed files with 12 additions and 5 deletions

View file

@ -84,9 +84,11 @@ upload_release() {
# It is expanded using "${assets[@]}" which preserves the separation of arguments and not split whitespace containing values.
# For reference, see https://github.com/koalaman/shellcheck/wiki/SC2086#exceptions
local assets=()
for file in "$RELEASE_DIR"/*; do
assets=("${assets[@]}" -a "$file")
done
if ! "$SKIP_ASSETS"; then
for file in "$RELEASE_DIR"/*; do
assets=("${assets[@]}" -a "$file")
done
fi
if $PRERELEASE || echo "${TAG}" | grep -qi '\-rc'; then
releaseType="--prerelease"
echo "Uploading as Pre-Release"