-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.goreleaser.yml
More file actions
78 lines (71 loc) · 1.67 KB
/
Copy path.goreleaser.yml
File metadata and controls
78 lines (71 loc) · 1.67 KB
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
version: 2
before:
hooks:
- go mod tidy
builds:
- id: amux
main: ./cmd/amux
binary: amux
env:
- CGO_ENABLED=0
goos:
- darwin
- linux
goarch:
- amd64
- arm64
ldflags:
- -s -w
- -X main.version={{.Version}}
- -X main.commit={{.ShortCommit}}
- -X main.date={{.CommitDate}}
archives:
- id: default
format: tar.gz
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
files:
- LICENSE
- README.md
checksum:
name_template: "checksums.txt"
signs:
# Detached minisign signature over checksums.txt, so clients can verify the
# checksums were produced by the release signing key and not just fetched
# from the same (potentially compromised) release channel.
#
# -l pins minisign's legacy (non-prehashed) "Ed" signature format, which is
# what the embedded verifier (internal/update/signature.go) and install.sh
# expect. Do not drop -l: the default prehashed "ED" format will not verify.
#
# MINISIGN_SECRET_KEY_FILE is materialized by CI from a GitHub Actions
# secret (see .github/workflows/release.yml); the key never lives in-repo.
- id: checksums
cmd: minisign
args:
[
"-S",
"-l",
"-s",
"{{ .Env.MINISIGN_SECRET_KEY_FILE }}",
"-m",
"${artifact}",
"-x",
"${signature}",
]
artifacts: checksum
signature: "${artifact}.minisig"
changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"
- "^ci:"
- "^chore:"
release:
github:
owner: andyrewlee
name: amux
draft: false
prerelease: auto
name_template: "v{{.Version}}"