mirror of
https://code.forgejo.org/actions/forgejo-release.git
synced 2024-11-24 10:20:57 -05:00
Add PRELEASE handling to forgejo-release.sh
This commit is contained in:
parent
a29fc96f18
commit
81f7998d0e
1 changed files with 1 additions and 1 deletions
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue