diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index 384af53..7d1a3d9 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -88,6 +88,6 @@ jobs: with: distribution: goreleaser version: latest - args: release --rm-dist + args: release --clean env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.goreleaser.yml b/.goreleaser.yml index f2881ca..eee8ca6 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -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: