Skip to content

Commit

Permalink
Added commit hash to release name
Browse files Browse the repository at this point in the history
  • Loading branch information
alexroan committed May 30, 2024
1 parent c64500d commit dae7d3a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,9 @@ jobs:
BIN_OUTPUT="target/${{ matrix.target }}/release/${PROJECT_NAME}${BIN_SUFFIX}"

# Define a better name for the final binary
BIN_COMMIT=$(git describe --tags)
BIN_RELEASE="${PROJECT_NAME}-${{ matrix.name }}${BIN_SUFFIX}"
BIN_RELEASE_VERSIONED="${PROJECT_NAME}-${{ github.ref_name }}-${{ matrix.name }}${BIN_SUFFIX}"
BIN_RELEASE_VERSIONED="${PROJECT_NAME}-${{ github.ref_name }}-${{ matrix.name }}-${BIN_COMMIT}${BIN_SUFFIX}"

# Move the built binary where you want it
ls -la
Expand Down

0 comments on commit dae7d3a

Please sign in to comment.