-
Notifications
You must be signed in to change notification settings - Fork 13
/
.goreleaser.yaml
47 lines (42 loc) · 945 Bytes
/
.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
before:
hooks:
- sh -c 'rm -r ./custom-build || true'
# hooks don't expand globs, so shell out
- sh -c ./.github/scripts/build-env.sh
- go mod edit -require=github.com/kadeessh/kadeessh@{{.Env.TAG}} ./custom-build/go.mod
- sh -c 'cd custom-build && go mod tidy'
builds:
- dir: custom-build
binary: kadeessh
env:
- CGO_ENABLED=0
flags:
- -trimpath
ldflags:
- -s -w
goos:
- linux
- darwin
goarch:
- "amd64"
checksum:
name_template: "checksums.txt"
algorithm: sha512
snapshot:
name_template: "{{ incpatch .Version }}-next"
release:
github:
owner: kadeessh
name: kadeessh
draft: true
prerelease: auto
changelog:
sort: asc
filters:
exclude:
- "^chore:"
- "^ci:"
- "^docs?:"
- "^readme:"
- "^tests?:"
- '^\w+\s+' # a hack to remove commit messages without colons thus don't correspond to a package