Skip to content

Commit

Permalink
Update goreleaser.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
cxjava committed Apr 20, 2020
1 parent e30c040 commit e1c19c9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
env:
- GO111MODULE=on
- BUILT_BY=goreleaser

before:
hooks:
- go generate ./...
- export GO_VERSION=$(go version)
- export BUILT_BY=$(whoami)@$(hostname)

builds:
- env:
Expand All @@ -16,7 +15,7 @@ builds:
- -X "main.Commit={{.FullCommit}}"
- -X "main.RepoUrl={{.GitURL}}"
- -X "main.BuildDate={{.Date}}"
- -X "main.BuiltWithGoVersion={{.Env.GO_VERSION}}"
- -X "main.BuiltWithGoVersion={{.Env.GOLANG_VERSION}}"
- -X "main.BuiltBy={{.Env.BUILT_BY}}"
flags:
- -tags=release
Expand Down

0 comments on commit e1c19c9

Please sign in to comment.