Skip to content

Commit

Permalink
fix: version in release name
Browse files Browse the repository at this point in the history
  • Loading branch information
cterence committed Oct 20, 2023
1 parent 307d6ef commit 02f5487
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,21 @@ jobs:

- name: Get ldflags env values
run: |
VERSION=${{ github.ref_name }}
echo "VERSION=${VERSION}" >> $GITHUB_ENV
echo "BUILD_TIMESTAMP=$(date +'%s')" >> $GITHUB_ENV
echo "VERSION=${{ github.ref_name }}" >> $GITHUB_ENV
echo "COMMIT_HASH=${{ github.sha }}" >> $GITHUB_ENV
# Remove the v prefix from the version and the -rc<number> suffix from the release candidate version
RELEASE_NAME=guacamole@${VERSION#v}
echo "RELEASE_NAME=${RELEASE_NAME%-*}" >> $GITHUB_ENV
- name: Check env variables
run: |
echo "BUILD_TIMESTAMP=$BUILD_TIMESTAMP"
echo "VERSION=$VERSION"
echo "COMMIT_HASH=$COMMIT_HASH"
echo "RELEASE_NAME=$RELEASE_NAME"
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
with:
Expand Down

0 comments on commit 02f5487

Please sign in to comment.