Skip to content

Commit 55ffb00

Browse files
authored
fix: goreleaser config (#1764)
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
1 parent 4fdaa32 commit 55ffb00

3 files changed

Lines changed: 9 additions & 8 deletions

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- uses: goreleaser/goreleaser-action@v4.2.0
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

Lines changed: 1 addition & 0 deletions
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

Lines changed: 7 additions & 7 deletions
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)