Skip to content

Commit c58ea0d

Browse files
authored
Merge pull request #32 from NETWAYS/chore/fix-goreleaser
Update goreleaser config to work with v1.19.0
2 parents 25bfdf5 + 591d7d4 commit c58ea0d

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.goreleaser.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,17 @@ builds:
1717
-X main.commit={{.Commit}}
1818
-X main.date={{.CommitDate}}
1919
release:
20+
draft: true
2021
github:
2122
owner: NETWAYS
2223
name: check_elasticsearch
2324
archives:
2425
- format: binary
25-
replacements:
26-
darwin: Darwin
27-
linux: Linux
28-
windows: Windows
29-
amd64: x86_64
26+
name_template: >-
27+
{{- if eq .Arch "amd64" }}x86_64{{ end }}
28+
{{- if eq .Os "linux" }}Linux{{ end }}
29+
{{- if eq .Os "windows" }}Windows{{ end }}
30+
{{- if eq .Os "darwin" }}Darwin{{ end }}
3031
checksum:
3132
name_template: 'checksums.txt'
3233
snapshot:

0 commit comments

Comments
 (0)