-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yml
108 lines (108 loc) · 2.75 KB
/
.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
# This is an example goreleaser.yaml file with some sane defaults.
# Make sure to check the documentation at http://goreleaser.com
before:
hooks:
# You may remove this if you don't use go modules.
- go mod download
# you may remove this if you don't need go generate
- go generate ./...
builds:
- binary: secrets
id: linux
goos:
- linux
env:
- CGO_ENABLED=0
ldflags:
- -s -w
- -X github.com/madwire-media/secrets-cli/vars.BuildVersion={{ .Version }}
- -X github.com/madwire-media/secrets-cli/vars.BuildCommit={{ .Commit }}
- binary: secrets
id: windows
goos:
- windows
env:
- CGO_ENABLED=0
ldflags:
- -s -w
- -X github.com/madwire-media/secrets-cli/vars.BuildVersion={{ .Version }}
- -X github.com/madwire-media/secrets-cli/vars.BuildCommit={{ .Commit }}
- binary: secrets
id: macos-amd64
goos:
- darwin
goarch:
- amd64
env:
- CGO_ENABLED=0
ldflags:
- -s -w
- -X github.com/madwire-media/secrets-cli/vars.BuildVersion={{ .Version }}
- -X github.com/madwire-media/secrets-cli/vars.BuildCommit={{ .Commit }}
hooks:
post:
- gon .gon-amd64.json
- mv dist/secrets-cli-macos-amd64.dmg dist/secrets-cli_{{ .Version }}_darwin_amd64.dmg
- binary: secrets
id: macos-arm64
goos:
- darwin
goarch:
- arm64
env:
- CGO_ENABLED=0
ldflags:
- -s -w
- -X github.com/madwire-media/secrets-cli/vars.BuildVersion={{ .Version }}
- -X github.com/madwire-media/secrets-cli/vars.BuildCommit={{ .Commit }}
hooks:
post:
- gon .gon-arm64.json
- mv dist/secrets-cli-macos-arm64.dmg dist/secrets-cli_{{ .Version }}_darwin_arm64.dmg
archives:
- id: linux-archive
builds:
- linux
format: tar.gz
name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}'
files:
- none*
- id: windows-archive
builds:
- windows
format: zip
name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}'
files:
- none*
- id: darwin-amd64-archive
builds:
- macos-amd64
format: tar.gz
name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}'
files:
- none*
- id: darwin-arm64-archive
builds:
- macos-arm64
format: tar.gz
name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}'
files:
- none*
release:
ids:
- linux-archive
- windows-archive
- darwin-amd64-archive
- darwin-arm64-archive
extra_files:
- glob: ./dist/*.dmg
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: '{{ .Tag }}-next'
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'