Skip to content

Commit ea19e33

Browse files
committed
ci: annotate arm64 pie binary with prerelease mark
1 parent 72f9cf4 commit ea19e33

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ jobs:
117117
GOARM: ${{ matrix.goarm }}
118118
PIE_ENABLED: ${{ matrix.pie }}
119119
CGO_ENABLED: 0
120+
IS_PRERELEASE: ${{ github.event.release.prerelease }}
120121

121122
steps:
122123
- name: Checkout codebase
@@ -128,6 +129,11 @@ jobs:
128129
id: get_filename
129130
run: |
130131
export _NAME=$(jq ".[\"$GOOS-$GOARCH$GOARM$PIE_ENABLED\"].friendlyName" -r < release/friendly-filenames.json)
132+
133+
if [ "$GOARCH" = "arm64" ] && [ "$PIE_ENABLED" = "pie" ] && [ "$IS_PRERELEASE" = "true" ]; then
134+
export _NAME="${_NAME}-prerelease"
135+
fi
136+
131137
echo "GOOS: $GOOS, GOARCH: $GOARCH, GOARM: $GOARM, RELEASE_NAME: $_NAME"
132138
echo "ASSET_NAME=$_NAME" >> $GITHUB_OUTPUT
133139
echo "ASSET_NAME=$_NAME" >> $GITHUB_ENV

0 commit comments

Comments
 (0)