Skip to content

Commit 3f3c306

Browse files
authored
Fix goreleaser deprecations (#114)
1 parent c0f8599 commit 3f3c306

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

.goreleaser.yaml

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ builds:
2525
tags:
2626
- netgo
2727

28-
brews:
28+
homebrew_casks:
2929
- name: gcredstash
3030
ids:
3131
- archives
@@ -40,11 +40,16 @@ brews:
4040
description: "Manages credentials using AWS Key Management Service (KMS) and DynamoDB"
4141
license: "ASL 2.0"
4242
commit_msg_template: "Brew formula update for {{ .ProjectName }} version {{ .Tag }}"
43-
install: |
44-
bin.install "gcredstash"
43+
hooks:
44+
post:
45+
install: |
46+
if OS.mac?
47+
system_command "/usr/bin/xattr", args: ["-dr", "com.apple.quarantine", "#{staged_path}/gcredstash"]
48+
end
4549
4650
archives:
47-
- format: tar.gz
51+
- formats:
52+
- tar.gz
4853
id: archives
4954
name_template: >-
5055
{{ .ProjectName }}_
@@ -57,7 +62,8 @@ archives:
5762
# use zip for windows archives
5863
format_overrides:
5964
- goos: windows
60-
format: zip
65+
formats:
66+
- zip
6167
files:
6268
- LICENSE
6369
- README.md
@@ -88,17 +94,16 @@ dockers:
8894

8995
checksum:
9096
algorithm: sha256
91-
name_template: '{{ .ProjectName }}_{{ .Version }}_SHA256SUMS'
97+
name_template: "{{ .ProjectName }}_{{ .Version }}_SHA256SUMS"
9298

9399
snapshot:
94-
name_template: "{{ incpatch .Version }}-next"
100+
version_template: "{{ incpatch .Version }}-next"
95101

96102
changelog:
97103
sort: asc
98104
filters:
99105
exclude:
100106
- "^docs:"
101107
- "^test:"
102-
103108
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
104109
# vim: set ts=2 sw=2 tw=0 fo=cnqoj

0 commit comments

Comments
 (0)