Skip to content

Commit 30177f1

Browse files
author
elifish4
authored
goreleaser scaffing
1 parent 38b7a7d commit 30177f1

File tree

1 file changed

+22
-11
lines changed

1 file changed

+22
-11
lines changed

.goreleaser.yml

Lines changed: 22 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
builds:
22
- env:
3-
- CGO_ENABLED=0
3+
- CGO_ENABLED=0
44
goos:
55
- darwin
66
- linux
@@ -13,15 +13,26 @@ archives:
1313
386: i386
1414
amd64: x86_64
1515
format_overrides:
16-
- goos: windows
17-
format: zip
16+
- goos: windows
17+
- format: zip
18+
name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}'
1819
checksum:
19-
name_template: 'checksums.txt'
20-
snapshot:
21-
name_template: "{{ .Tag }}-next"
20+
name_template: '{{ .ProjectName }}_{{ .Version }}_SHA256SUMS'
21+
algorithm: sha256
22+
signs:
23+
- artifacts: checksum
24+
args:
25+
# if you are using this in a GitHub action or some other automated pipeline, you
26+
# need to pass the batch flag to indicate its not interactive.
27+
- "--batch"
28+
- "--local-user"
29+
- "{{ .Env.GPG_FINGERPRINT }}" # set this environment variable for your signing key
30+
- "--output"
31+
- "${signature}"
32+
- "--detach-sign"
33+
- "${artifact}"
34+
release:
35+
# If you want to manually examine the release before its live, uncomment this line:
36+
# draft: true
2237
changelog:
23-
sort: asc
24-
filters:
25-
exclude:
26-
- '^docs:'
27-
- '^test:'
38+
skip: true

0 commit comments

Comments
 (0)