Skip to content

Commit

Permalink
ci: inject release tag as go build tag.
Browse files Browse the repository at this point in the history
  • Loading branch information
securitym0nkey committed May 25, 2024
1 parent 5446fc7 commit a8be245
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,7 @@ jobs:
multi_binaries: true
project_path: "./cmd/..."
goversion: "go.mod"
ldflags: -X "main.version=${{ github.ref_name }}"
build_flags: -tags ${{ github.ref_name }}
extra_files: LICENSE README.md
env:
CGO_ENABLED: 0

0 comments on commit a8be245

Please sign in to comment.