Skip to content

Commit

Permalink
goreleaser: updates to make it work with new version
Browse files Browse the repository at this point in the history
* archives.replacements was deprecated in the configuration file https://goreleaser.com/deprecations/#archivesreplacements
* parameter `--rm-dist` is now `--clean`

Fixes #88
  • Loading branch information
jfontan committed Aug 19, 2023
1 parent 9df8858 commit 4a4d388
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,6 @@ jobs:
with:
distribution: goreleaser
version: latest
args: release --rm-dist
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
17 changes: 11 additions & 6 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,17 @@ builds:
binary: glsladmin
id: glsladmin
archives:
- replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
# replacements was deprecated
# https://goreleaser.com/deprecations/#archivesreplacements
- id: foo
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: 'checksums.txt'
snapshot:
Expand Down

0 comments on commit 4a4d388

Please sign in to comment.