Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: goreleaser configuration #202

Merged
merged 1 commit into from
Jul 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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