diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 01d0603..8d8a5dc 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -35,7 +35,7 @@ jobs: with: distribution: goreleaser version: latest - args: release --rm-dist + args: release --clean env: DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 4b30858..5af5905 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -14,12 +14,14 @@ builds: ldflags: - "-X github.com/aspettl/ccliwrapper/cmd.Version={{ .Version }}" archives: - - replacements: - darwin: Darwin - linux: Linux - windows: Windows - 386: i386 - amd64: x86_64 + - name_template: >- + {{- .ProjectName }}_ + {{- .Version }}_ + {{- title .Os }}_ + {{- if eq .Arch "amd64" }}x86_64 + {{- else if eq .Arch "386" }}i386 + {{- else }}{{ .Arch }}{{ end }} + {{- if .Arm }}v{{ .Arm }}{{ end -}} files: - README.md - LICENSE