Skip to content

Commit

Permalink
feat: get version based on tags
Browse files Browse the repository at this point in the history
  • Loading branch information
mul14 committed Apr 19, 2024
1 parent 83b97fe commit fa6c73d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ jobs:
GOOS: ${{ matrix.goos }}
GOARCH: ${{ matrix.goarch }}
run: |
VERSION=$GITHUB_REF_NAME||$GITHUB_HEAD_REF
echo "Raiden version: $VERSION"
sed "s/.*appVersion = \".*\"$/\tappVersion = \"$VERSION\"/" 'cmd/raiden/commands/version.go'
go build -ldflags="-s -w" -trimpath -o build/raiden ./cmd/raiden/main.go
cd build
if [[ $GOOS == 'darwin' ]]; then
Expand Down

0 comments on commit fa6c73d

Please sign in to comment.