Skip to content

Commit

Permalink
Simpler way to get PEBBLE_VERSION
Browse files Browse the repository at this point in the history
  • Loading branch information
benhoyt committed Mar 24, 2023
1 parent 19f07e3 commit a75f401
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 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=$(go run ./cmd/pebble version | awk '/client/ { print $2 }')
PEBBLE_VERSION=$(git describe --tags --always | awk '{ print substr($0, 2) }') # trim "v" prefix
ARCHIVE_FILE=pebble_${PEBBLE_VERSION}_${GOOS}_${GOARCH}.tar.gz
echo Creating archive $ARCHIVE_FILE
tar -czf dist/$ARCHIVE_FILE -C dist/build .
echo Uploading $ARCHIVE_FILE to relase v$PEBBLE_VERSION
echo Uploading $ARCHIVE_FILE to release v$PEBBLE_VERSION
gh release upload v$PEBBLE_VERSION dist/$ARCHIVE_FILE

0 comments on commit a75f401

Please sign in to comment.