Skip to content

Commit 4543069

Browse files
authored
Update goreleaser.yml to v2 (#365)
1 parent 65a6502 commit 4543069

1 file changed

Lines changed: 6 additions & 10 deletions

File tree

.goreleaser.yml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
# This is an example goreleaser.yaml file with some sane defaults.
2-
# Make sure to check the documentation at http://goreleaser.com
1+
version: 2
32
env:
43
- CGO_ENABLED=0
54
before:
@@ -34,7 +33,7 @@ builds:
3433
- '-s -w -X {{ .ModulePath }}/version.Version={{.Version}} -X {{ .ModulePath }}/version.VersionPrerelease= '
3534
goos:
3635
- freebsd
37-
- openbsd
36+
- openbsd
3837
- windows
3938
- linux
4039
- darwin
@@ -50,30 +49,27 @@ builds:
5049
goarch: amd64
5150
binary: '{{ .ProjectName }}_v{{ .Version }}_{{ .Env.API_VERSION }}_{{ .Os }}_{{ .Arch }}'
5251
archives:
53-
- format: zip
52+
- formats: zip
5453
files:
5554
- none*
56-
name_template: '{{ .ProjectName }}_v{{ .Version }}_{{ .Env.API_VERSION }}_{{ .Os }}_{{ .Arch }}'
5755
checksum:
5856
name_template: '{{ .ProjectName }}_v{{ .Version }}_SHA256SUMS'
5957
algorithm: sha256
6058
signs:
6159
- artifacts: checksum
6260
args:
63-
# if you are using this is in a GitHub action or some other automated pipeline, you
64-
# need to pass the batch flag to indicate its not interactive.
6561
- "--batch"
6662
- "--local-user"
6763
- "{{ .Env.GPG_FINGERPRINT }}"
6864
- "--output"
6965
- "${signature}"
7066
- "--detach-sign"
7167
- "${artifact}"
72-
7368
release:
7469
draft: true
7570
extra_files:
7671
- glob: ./docs.zip
77-
7872
changelog:
79-
skip: true
73+
filters:
74+
exclude:
75+
- '*'

0 commit comments

Comments
 (0)