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:
parent
9df8858cb5
commit
4a4d3884aa
|
@ -88,6 +88,6 @@ jobs:
|
|||
with:
|
||||
distribution: goreleaser
|
||||
version: latest
|
||||
args: release --rm-dist
|
||||
args: release --clean
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue