mirror of
https://code.forgejo.org/actions/forgejo-release.git
synced 2024-11-24 12:31:03 -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() {
|
upload_release() {
|
||||||
local assets=$(ls $RELEASE_DIR/* | sed -e 's/^/-a /')
|
local assets=$(ls $RELEASE_DIR/* | sed -e 's/^/-a /')
|
||||||
local releasetype
|
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"
|
test ${releasetype+false} || echo "Uploading as Stable"
|
||||||
ensure_tag
|
ensure_tag
|
||||||
anchor=$(echo $TAG | sed -e 's/^v//' -e 's/[^a-zA-Z0-9]/-/g')
|
anchor=$(echo $TAG | sed -e 's/^v//' -e 's/[^a-zA-Z0-9]/-/g')
|
||||||
|
|
Loading…
Reference in a new issue