-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathgoreleaser.yml
More file actions
44 lines (43 loc) · 929 Bytes
/
goreleaser.yml
File metadata and controls
44 lines (43 loc) · 929 Bytes
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
version: 2
project_name: codeowners-cli
before:
hooks:
# You may remove this if you don't use go modules.
- go mod tidy
builds:
# You can have multiple builds defined as a yaml list
- id: "cli"
main: ./tools/cli
binary: >-
{{ .ProjectName }}
{{- if eq .Os "windows" }}.exe{{ end }}
env:
- CGO_ENABLED=0
ldflags:
- -extldflags=-static
goos:
- linux
- darwin
- windows
goarch:
- amd64
- arm64
archives:
- name_template: >-
{{ .ProjectName }}_{{ .Version }}_{{ title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end -}}
files:
- none*
checksum:
name_template: 'checksums.txt'
snapshot:
version_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'