-
Notifications
You must be signed in to change notification settings - Fork 2
/
.goreleaser.yaml
47 lines (45 loc) · 1017 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
project_name: gosherve
before:
hooks:
- go mod tidy
builds:
- main: ./cmd/gosherve/
binary: gosherve
mod_timestamp: "{{ .CommitTimestamp }}"
env:
- CGO_ENABLED=0
goos:
- linux
goarch:
- amd64
- arm64
ldflags:
- -X main.version={{ .Version }} -X main.commit={{ .Commit }} -X main.date={{ .CommitDate }}
archives:
# e.g. gosherve_0.1.0_linux_aarch64.tar.gz, gosherve_0.1.0_linux_x86_64.tar.gz
- name_template: >-
{{ .ProjectName }}_
{{- .Version }}_
{{- .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "arm64" }}aarch64
{{- else }}{{ .Arch }}{{ end }}
files:
- 'LICENSE*'
- 'README*'
checksum:
name_template: "checksums.txt"
snapshot:
name_template: "{{ incpatch .Version }}-next"
release:
prerelease: auto
# Defaults to empty.
footer: |
## Thanks!
That's all the changes for {{ .Tag }}!
changelog:
sort: asc
use: github
filters:
exclude:
- "^test:"