Skip to content

Commit 3562619

Browse files
authored
Fix goreleaser configuration: update formats syntax and refine sign command options (#158)
1 parent 2a75ca8 commit 3562619

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.goreleaser.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
# This is an example goreleaser.yaml file with some defaults.
55
# Make sure to check the documentation at http://goreleaser.com
6+
version: 2
67
env:
78
- CGO_ENABLED=0
89
before:
@@ -86,7 +87,7 @@ builds:
8687
goarch: '386'
8788
binary: '{{ .ProjectName }}_v{{ .Version }}_{{ .Env.API_VERSION }}_{{ .Os }}_{{ .Arch }}'
8889
archives:
89-
- format: zip
90+
- formats: [zip]
9091
files:
9192
- "LICENSE.txt"
9293

@@ -96,7 +97,7 @@ checksum:
9697
algorithm: sha256
9798
signs:
9899
- cmd: signore
99-
args: ["sign", "--dearmor", "--file", "${artifact}", "--out", "${signature}"]
100+
args: ["sign", "--signer-options", "{\"type\": \"pgp\", \"dearmor\": true}", "--file", "${artifact}", "--out", "${signature}"]
100101
artifacts: checksum
101102
signature: ${artifact}.sig
102103

0 commit comments

Comments
 (0)