Skip to content

Commit 778c4ce

Browse files
committed
[+] add support for goreleaser v1.19, fixes #586
1 parent 7d64d34 commit 778c4ce

2 files changed

Lines changed: 13 additions & 14 deletions

File tree

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,4 +137,4 @@ jobs:
137137
uses: goreleaser/goreleaser-action@v4
138138
with:
139139
version: latest
140-
args: release --snapshot --skip-publish --rm-dist
140+
args: release --snapshot --skip-publish --clean

.goreleaser.yml

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,13 @@ builds:
1111
- windows
1212

1313
archives:
14-
- name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}'
14+
- name_template: >-
15+
{{ .ProjectName }}_
16+
{{- title .Os }}_
17+
{{- if eq .Arch "amd64" }}x86_64
18+
{{- else if eq .Arch "386" }}i386
19+
{{- else }}{{ .Arch }}{{ end }}
1520
wrap_in_directory: true
16-
replacements:
17-
darwin: Darwin
18-
linux: Linux
19-
windows: Windows
20-
386: i386
21-
amd64: x86_64
2221
format_overrides:
2322
- goos: windows
2423
format: zip
@@ -39,12 +38,12 @@ changelog:
3938
nfpms:
4039
# note that this is an array of nfpm configs
4140
-
42-
replacements:
43-
darwin: Darwin
44-
linux: Linux
45-
windows: Windows
46-
386: i386
47-
amd64: x86_64
41+
file_name_template: >-
42+
{{ .ProjectName }}_
43+
{{- title .Os }}_
44+
{{- if eq .Arch "amd64" }}x86_64
45+
{{- else if eq .Arch "386" }}i386
46+
{{- else }}{{ .Arch }}{{ end }}
4847
4948
vendor: CYBERTEC PostgreSQL International GmbH
5049
homepage: https://www.cybertec-postgresql.com/en/products/pg_timetable/

0 commit comments

Comments
 (0)