Skip to content

Commit

Permalink
add goreleaser config file
Browse files Browse the repository at this point in the history
  • Loading branch information
fitzix committed Jul 31, 2018
1 parent 16d5560 commit 152932d
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
project_name: go_log
builds:
-
env:
- CGO_ENABLED=0
goos:
- linux
- darwin
- windows
goarch:
- amd64
ldflags: -s -w -X main.VERSION={{.Version}} -X main.COMMIT={{.Commit}} -X main.DATE={{.Date}} -X "main.GOVERSION={{.Env.GOVERSION}}"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
- Merge pull request
- Merge branch

archive:
name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
format_overrides:
- goos: windows
format: zip

0 comments on commit 152932d

Please sign in to comment.