Skip to content

Commit

Permalink
Add build version injection
Browse files Browse the repository at this point in the history
  • Loading branch information
zayigo committed Feb 9, 2024
1 parent c773416 commit ee7327d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ jobs:
if [ "${{ matrix.platform }}" == "windows" ]; then
output_name+=".exe"
fi
env CGO_ENABLED=0 GOOS=${{ matrix.platform }} GOARCH=${{ matrix.arch }} GOARM=$GOARM go build -o "$output_dir/$output_name" ./main
env CGO_ENABLED=0 GOOS=${{ matrix.platform }} GOARCH=${{ matrix.arch }} GOARM=$GOARM go build -ldflags="-X 'main.Version=${version_tag}'" -o "$output_dir/$output_name" ./main
- name: Upload to Release
uses: svenstaro/upload-release-action@v2
Expand Down

0 comments on commit ee7327d

Please sign in to comment.