goreleaser: updates to make it work with new version

* archives.replacements was deprecated in the configuration file https://goreleaser.com/deprecations/#archivesreplacements
* parameter `--rm-dist` is now `--clean`

Fixes #88
This commit is contained in:
Javi Fontan 2023-08-19 11:21:46 +02:00
parent 9df8858cb5
commit 4a4d3884aa
No known key found for this signature in database
GPG Key ID: CC378C088E01FF94
2 changed files with 12 additions and 7 deletions

View File

@ -88,6 +88,6 @@ jobs:
with:
distribution: goreleaser
version: latest
args: release --rm-dist
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View File

@ -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: