From 81f7998d0e2501749280bbe9832ae18cdbd8c455 Mon Sep 17 00:00:00 2001 From: Neshura Date: Wed, 3 Jan 2024 18:25:06 +0000 Subject: [PATCH] Add PRELEASE handling to forgejo-release.sh --- forgejo-release.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/forgejo-release.sh b/forgejo-release.sh index 54736c7..4515d02 100755 --- a/forgejo-release.sh +++ b/forgejo-release.sh @@ -40,7 +40,7 @@ ensure_tag() { upload_release() { local assets=$(ls $RELEASE_DIR/* | sed -e 's/^/-a /') local releasetype - echo "${TAG}" | grep -qi '\-rc' && export releasetype="--prerelease" && echo "Uploading as Pre-Release" + ( $PRERELEASE || echo "${TAG}" | grep -qi '\-rc' ) && export releasetype="--prerelease" && echo "Uploading as Pre-Release" test ${releasetype+false} || echo "Uploading as Stable" ensure_tag anchor=$(echo $TAG | sed -e 's/^v//' -e 's/[^a-zA-Z0-9]/-/g')