generated from bartoszmajsak/template-golang
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.goreleaser.yml
30 lines (30 loc) · 858 Bytes
/
.goreleaser.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
before:
hooks:
- make deps
builds:
- env:
- CGO_ENABLED=0
## Overlaps with what is defined in Makefile - we should find a away of having it defined only once
- PACKAGE_NAME=github.com/bartoszmajsak/github-changelog-generator
- RELEASE=true
main: ./cmd/
binary: ghc
goos:
- linux
- darwin
goarch:
- 386
- amd64
ldflags:
- -s -w -X {{.Env.PACKAGE_NAME}}/version.Release={{.Env.RELEASE}} -X {{.Env.PACKAGE_NAME}}/version.Version=v{{.Version}} -X {{.Env.PACKAGE_NAME}}/version.Commit={{.ShortCommit}} -X {{.Env.PACKAGE_NAME}}/version.BuildTime={{.Date}}
archives:
- name_template: "{{ .Binary }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
replacements:
darwin: Darwin
linux: Linux
386: i386
amd64: x86_64
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next"