Skip to content

Commit

Permalink
Fix prerelease and latest flags for release builds
Browse files Browse the repository at this point in the history
Fixes #9

Signed-off-by: Joachim Wiberg <[email protected]>
  • Loading branch information
troglobit committed May 24, 2024
1 parent 4e4b018 commit 058c570
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/build-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,21 @@ jobs:
if [[ "${VER}" =~ ^v.* ]]; then
TAG=${VER#?}
SFX="-$VER"
if [[ "${VER}" =~ ^v[0-9.]+(-alpha|-beta|-rc)[0-9]* ]]; then
PRE=true
LAT=false
else
PRE=false
LAT=true
fi
else
VER=edge
TAG=$VER
PRE=false
LAT=false
fi
echo "pre=$PRE" >> $GITHUB_OUTPUT
echo "lat=$LAT" >> $GITHUB_OUTPUT
echo "ver=$VER" >> $GITHUB_OUTPUT
echo "tag=$TAG" >> $GITHUB_OUTPUT
echo "sfx=$SFX" >> $GITHUB_OUTPUT
Expand Down Expand Up @@ -136,7 +147,8 @@ jobs:
omitName: true
omitBody: true
omitBodyDuringUpdate: true
prerelease: true
prerelease: ${{ steps.vars.outputs.pre }}
makeLatest: ${{ steps.vars.outputs.lat }}
tag: ${{ steps.vars.outputs.ver }}
token: ${{ secrets.GITHUB_TOKEN }}
artifacts: "*.tar.gz*"
Expand Down

0 comments on commit 058c570

Please sign in to comment.