-
Notifications
You must be signed in to change notification settings - Fork 4
/
.goreleaser.yml
51 lines (43 loc) · 940 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
project_name: gh-changelog
release:
name_template: "gh-changelog {{.Version}}"
prerelease: auto
before:
hooks:
- go mod tidy
- go fmt ./...
builds:
- id: changelog
binary: "{{ tolower .Os }}-{{ .Arch }}"
env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
goarch:
- amd64
- arm
- arm64
asmflags:
- all=-trimpath={{.Env.WORKINGDIR}}
gcflags:
- all=-trimpath={{.Env.WORKINGDIR}}
ldflags:
- -s -w -X github.com/chelnak/gh-changelog/cmd.version={{.Version}}
mod_timestamp: '{{ .CommitTimestamp }}'
no_unique_dist_dir: true
archives:
- format: binary
name_template: "{{ tolower .Os }}-{{ .Arch }}"
allow_different_binary_count: true
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-{{.ShortCommit}}"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'