-
Notifications
You must be signed in to change notification settings - Fork 3
/
.goreleaser.yaml
60 lines (54 loc) · 1.29 KB
/
.goreleaser.yaml
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
52
53
54
55
56
57
58
59
60
version: 2
checksum:
name_template: checksums.txt
snapshot:
version_template: '{{ .Tag }}'
changelog:
sort: asc
use: github
groups:
- title: Features
regexp: "^.*(feat:|feat\\/|feat(\\([^\\)]*\\)):).*"
order: 0
- title: 'Bug fixes'
regexp: "^.*(fix:|fix\\/|fix(\\([^\\)]*\\)):).*"
order: 1
- title: Others
order: 999
filters:
exclude:
- '^docs'
- '^test'
- '^style'
- '^refactor'
- '^build'
- '^ci'
- '^chore(release)'
before:
hooks:
- go mod tidy
builds:
- binary: git-secret-scanner
main: main.go
env:
- CGO_ENABLED=0
- PACKAGE=github.com/padok-team/git-secret-scanner
- VERSION={{ if index .Env "VERSION" }}{{ .Env.VERSION }}{{ else }}{{ .ShortCommit }}{{ end }}
ldflags:
- -X {{ .Env.PACKAGE }}/cmd.Version={{ .Env.VERSION }}
goos:
- linux
- darwin
brews:
- name: git-secret-scanner
homepage: https://github.com/padok-team/git-secret-scanner
repository:
owner: padok-team
name: homebrew-tap
token: '{{ .Env.HOMEBREW_PAT }}'
- name: '{{ .Env.RELEASE_NAME }}'
homepage: https://github.com/padok-team/git-secret-scanner
repository:
owner: padok-team
name: homebrew-tap
token: '{{ .Env.HOMEBREW_PAT }}'