Skip to content

Commit 55ffb00

Browse files
authored
fix: goreleaser config (#1764)
Signed-off-by: Carlos Alexandro Becker <[email protected]>
1 parent 4fdaa32 commit 55ffb00

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

.github/workflows/release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- uses: goreleaser/[email protected]
2121
id: run-goreleaser
2222
with:
23-
version: v1.18.2
23+
version: "~> v1.19"
2424
args: release --rm-dist
2525
env:
2626
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
bazel*
44
.idea
55
*.iml
6+
dist/
67

78
cmd/crane/crane
89
cmd/gcrane/gcrane

.goreleaser.yml

+7-7
Original file line numberDiff line numberDiff line change
@@ -91,13 +91,13 @@ builds:
9191
source:
9292
enabled: true
9393
archives:
94-
- replacements:
95-
darwin: Darwin
96-
linux: Linux
97-
windows: Windows
98-
386: i386
99-
amd64: x86_64
100-
name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
94+
- name_template: >-
95+
{{ .ProjectName }}_
96+
{{- title .Os }}_
97+
{{- if eq .Arch "amd64" }}x86_64
98+
{{- else if eq .Arch "386" }}i386
99+
{{- else }}{{ .Arch }}{{ end }}
100+
{{- if .Arm }}v{{ .Arm }}{{ end -}}
101101
checksum:
102102
name_template: 'checksums.txt'
103103
snapshot:

0 commit comments

Comments
 (0)