-
Notifications
You must be signed in to change notification settings - Fork 2
/
.goreleaser.yaml
48 lines (48 loc) · 1.04 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
project_name: nanafs
env:
- GO111MODULE=on
- CGO_ENABLED=0
before:
hooks:
- go mod download
builds:
- id: nanafs-darwin-amd64
ldflags: -s -w -X config.gitCommit={{.ShortCommit}} -X config.gitTag={{.Version}}
main: .
goos:
- darwin
goarch:
- amd64
- id: nanafs-darwin-arm64
ldflags: -s -w -X config.gitCommit={{.ShortCommit}} -X config.gitTag={{.Version}}
main: .
goos:
- darwin
goarch:
- arm64
- id: nanafs-linux-amd64
ldflags: -s -w -X config.gitCommit={{.ShortCommit}} -X config.gitTag={{.Version}}
main: .
goos:
- linux
goarch:
- amd64
- id: nanafs-linux-arm64
ldflags: -s -w -X config.gitCommit={{.ShortCommit}} -X config.gitTag={{.Version}}
main: .
goos:
- linux
goarch:
- arm64
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
archives:
- name_template: "{{ .ProjectName }}-{{ .Version }}-{{ .Os }}-{{ .Arch }}"