From 2c0ffe163fb26d63f3025caac82e52787ce005af Mon Sep 17 00:00:00 2001 From: OpenSauce04 Date: Tue, 2 Apr 2024 13:30:15 +0100 Subject: [PATCH] Fixed release archives naming the contained folder "head" instead of the release name --- .ci/pack.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.ci/pack.sh b/.ci/pack.sh index f2986f8cf..1f180616b 100755 --- a/.ci/pack.sh +++ b/.ci/pack.sh @@ -6,10 +6,10 @@ GITREV="`git show -s --format='%h'`" REV_NAME="lime-$OS-$TARGET-$GITDATE-$GITREV" # Determine the name of the release being built. -if [[ "$GITHUB_REF_NAME" =~ ^canary- ]] || [[ "$GITHUB_REF_NAME" =~ ^nightly- ]]; then - RELEASE_NAME=$(echo $GITHUB_REF_NAME | cut -d- -f1) +if [[ "$GITHUB_REF_TYPE" == "tag" ]]; then + RELEASE_NAME=lime-$GITHUB_REF_NAME else - RELEASE_NAME=head + RELEASE_NAME=lime-head fi # Archive and upload the artifacts.