Skip to content

Commit

Permalink
fix: goreleaser configuration (#202)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaspin authored Jul 4, 2023
1 parent f2bd806 commit 450ab23
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 13 deletions.
27 changes: 15 additions & 12 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,27 +32,30 @@ archives:
- id: non-windows-archive
builds:
- non-windows-build
name_template: '{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
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 }}
files:
- README.md
- install.sh
replacements:
darwin: Darwin
linux: Linux
386: i386
amd64: x86_64

- id: windows-archive
builds:
- windows-build
name_template: '{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
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 }}
files:
- README.md
- install.ps1
replacements:
386: i386
amd64: x86_64
windows: Windows

checksum:
name_template: '{{ .ProjectName }}_checksums.txt'
Expand All @@ -66,7 +69,7 @@ changelog:
- Merge branch

brews:
- tap:
- repository:
owner: semaphoreci
name: homebrew-tap
commit_author:
Expand Down
2 changes: 1 addition & 1 deletion .semaphore/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ blocks:
- name: Sem Agent
commands:
- export GITHUB_TOKEN=$ACCESS_TOKEN
- curl -sL https://git.io/goreleaser | bash -s -- --rm-dist
- curl -sL https://git.io/goreleaser | bash -s -- --clean

0 comments on commit 450ab23

Please sign in to comment.