Update go-release.yml

This commit is contained in:
StarFleetCPTN
2025-03-18 22:13:47 -07:00
committed by GitHub
parent aa04c76e1f
commit be19a5efde
+2 -2
View File
@@ -66,7 +66,7 @@ jobs:
mkdir -p dist mkdir -p dist
# Define common ldflags with version information # Define common ldflags with version information
LDFLAGS="-X github.com/starfleetcptn/gomft/components.AppVersion=$VERSION -X main.Version=$VERSION -X main.BuildTime=$BUILD_TIME -X main.Commit=$COMMIT" LDFLAGS="-X github.com/starfleetcptn/gomft/components.AppVersion=$VERSION -X main.Version=$VERSION -X main.BuildTime=$BUILD_TIME -X main.Commit=$COMMIT -X github.com/starfleetcptn/gomft/components.BuildTime=$BUILD_TIME -X github.com/starfleetcptn/gomft/components.Commit=$COMMIT"
# Linux builds # Linux builds
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -ldflags="$LDFLAGS" -o dist/gomft-$VERSION-linux-amd64 . GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -ldflags="$LDFLAGS" -o dist/gomft-$VERSION-linux-amd64 .
@@ -101,4 +101,4 @@ jobs:
generate_release_notes: true generate_release_notes: true
draft: false draft: false
# The following line is not needed as we set permissions at workflow level # The following line is not needed as we set permissions at workflow level
# token: ${{ secrets.GITHUB_TOKEN }} # token: ${{ secrets.GITHUB_TOKEN }}