Skip to content

Commit

Permalink
Include 'v' prefix in filename version
Browse files Browse the repository at this point in the history
  • Loading branch information
benhoyt committed Mar 24, 2023
1 parent a75f401 commit b853193
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ jobs:
cp COPYING dist/build
cp README.md dist/build
PEBBLE_VERSION=$(git describe --tags --always | awk '{ print substr($0, 2) }') # trim "v" prefix
ARCHIVE_FILE=pebble_${PEBBLE_VERSION}_${GOOS}_${GOARCH}.tar.gz
RELEASE_TAG=$(git describe --tags --always)
ARCHIVE_FILE=pebble_${RELEASE_TAG}_${GOOS}_${GOARCH}.tar.gz
echo Creating archive $ARCHIVE_FILE
tar -czf dist/$ARCHIVE_FILE -C dist/build .
echo Uploading $ARCHIVE_FILE to release v$PEBBLE_VERSION
gh release upload v$PEBBLE_VERSION dist/$ARCHIVE_FILE
echo Uploading $ARCHIVE_FILE to release $RELEASE_TAG
gh release upload $RELEASE_TAG dist/$ARCHIVE_FILE

0 comments on commit b853193

Please sign in to comment.