Skip to content

Commit

Permalink
fix: goreleaser configuration (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaspin authored Oct 18, 2023
1 parent d173b6c commit 3b175b2
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 12 deletions.
25 changes: 14 additions & 11 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,20 +34,23 @@ archives:
- id: non-windows-archive
builds:
- non-windows-build
name_template: '{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
replacements:
linux: Linux
darwin: Darwin
amd64: x86_64
386: i386
name_template: >-
{{ .ProjectName }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end }}
- id: windows-archive
builds:
- windows-build
name_template: '{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
replacements:
386: i386
amd64: x86_64
windows: Windows
name_template: >-
{{ .ProjectName }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end }}
checksum:
name_template: '{{ .ProjectName }}_checksums.txt'
Expand Down
2 changes: 1 addition & 1 deletion .semaphore/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ blocks:
jobs:
- name: Artifact release
commands:
- curl -sL https://git.io/goreleaser | bash -s -- --rm-dist
- curl -sL https://git.io/goreleaser | bash -s -- --clean

0 comments on commit 3b175b2

Please sign in to comment.