-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yaml
61 lines (54 loc) · 1.06 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
49
50
51
52
53
54
55
56
57
58
59
60
61
before:
hooks:
- go mod tidy
builds:
- id: b-build
main: ./cmd/b/main.go
binary: b
ldflags:
- -w
- -X {{ .ModulePath }}/cmd/b.version={{ .Version }}
- -X {{ .ModulePath }}/cmd/b.versionPrerelease={{- if .IsSnapshot -}}dev+{{ .ShortCommit }}{{- end -}}
env:
- CGO_ENABLED=0
goos:
- freebsd
- windows
- linux
goarch:
- amd64
- arm
- arm64
- "386"
goarm:
- "6"
- "7"
checksum:
name_template: checksums.txt
algorithm: sha256
signs:
- artifacts: all
signature: ${artifact}.sig
id: buyo-sign
ids:
- b-build
args:
- --batch
- --pinentry-mode=loopback
- --output=${signature}
- --detach-sign
- ${artifact}
archives:
- id: b-archive
builds:
- b-build
name_template: "{{ .Binary }}-{{ .Os }}-{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
format_overrides:
- goos: windows
format: zip
files:
- LICENSE
- README.md
release:
draft: false