-
Notifications
You must be signed in to change notification settings - Fork 10
/
.goreleaser.yml
56 lines (51 loc) · 1.07 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
# to test
# docker run -ti -v "$PWD:$PWD" -w "$PWD" goreleaser/goreleaser:latest release --snapshot --rm-dist
project_name: ansisvg
before:
hooks:
- go mod download
release:
draft: true
builds:
- env:
- CGO_ENABLED=0
goarch:
- amd64
- arm64
goos:
- linux
- windows
- darwin
flags:
- -trimpath
ldflags:
# omit symbol table and debug information
- -s -w
- -X main.version={{.Version}}
- -X main.commit={{.Commit}}
- -X main.date={{.CommitDate}}
- -X main.builtBy=goreleaser
checksum:
name_template: "checksums.txt"
archives:
- files:
# skip all other files
- none*
format_overrides:
- goos: windows
format: zip
- goos: darwin
format: zip
# name_1.2.3_linux_amd64.tar.gz
# name_1.2.3_macos_arm64.zip
name_template: >-
{{ .ProjectName }}_
{{- .Version }}_
{{- if eq .Os "darwin" }}macos_
{{- else }}{{ .Os }}_{{ end }}
{{- .Arch }}
changelog:
sort: asc
filters:
exclude:
- "^Merge"