diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index f912fe56..4d47eca5 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -22,7 +22,7 @@ jobs: uses: goreleaser/goreleaser-action@v4 with: version: latest - args: release --rm-dist + args: release --clean env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} VERSION: ${{ env.VERSION }} diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 7af6e116..7a41c068 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -16,14 +16,14 @@ source: name_template: '{{ .ProjectName }}-{{ .Tag }}-source' archives: # Default template uses underscores instead of - - - name_template: "{{ .ProjectName }}-{{ .Tag }}-{{ .Os }}-{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}" - # TODO: this is deprecated -> https://goreleaser.com/deprecations#archivesreplacements - replacements: - darwin: Darwin - linux: Linux - windows: Windows - 386: i386 - amd64: x86_64 + - name_template: >- + {{ .ProjectName }}- + {{ .Tag }}- + {{- 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: '{{ .ProjectName }}-{{ .Tag }}-checksums.txt' snapshot: