Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
zong-zhe committed May 10, 2023
1 parent 170044e commit d293239
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,8 @@ before:
hooks:
# You may remove this if you don't use go modules.
- go mod tidy
- bash -c "export VERSION=$(git describe --tags)"
- bash -c "export LDFLAGS=\"-X main.version=$VERSION\""
builds:
- id: kpm
main: ./kpm.go
ldflags:
- "{{.Env.LDFLAGS}}"
- "-X main.version={{.Version}}"

0 comments on commit d293239

Please sign in to comment.