From 495ccea2bd200092ffe1fc4cc5fe016b7ca83539 Mon Sep 17 00:00:00 2001 From: Karl Johan Grahn Date: Tue, 17 Sep 2024 16:01:51 +0200 Subject: [PATCH] update --- .github/workflows/release.yml | 2 +- .goreleaser.yml | 14 +------------- 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index bb87ca1..2d66f1a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -28,7 +28,7 @@ jobs: - name: Run GoReleaser uses: goreleaser/goreleaser-action@master with: - version: latest + version: '~> v2' args: release --clean env: GITHUB_TOKEN: ${{ secrets.PUBLISH_TOKEN }} diff --git a/.goreleaser.yml b/.goreleaser.yml index fe67330..2103ce2 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -14,19 +14,7 @@ builds: - darwin archives: - - format: tar.gz - # this name template makes the OS and Arch compatible with the results of `uname`. - 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 }} - # use zip for windows archives - format_overrides: - - goos: windows - format: zip +- name_template: "{{ .ProjectName }}_v{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}" checksum: name_template: 'checksums.txt'