diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c7bad5fc..bee2d3b7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,7 +3,7 @@ name: release on: push: tags: - - 'v*' + - "v*" jobs: goreleaser: @@ -32,7 +32,7 @@ jobs: - name: Run GoReleaser uses: goreleaser/goreleaser-action@v4 with: - version: latest + version: "~> v2" args: release key: ${{ secrets.YOUR_PRIVATE_KEY }} env: diff --git a/.github/workflows/snapshot.yml b/.github/workflows/snapshot.yml index ecbb3e69..1572f4fa 100644 --- a/.github/workflows/snapshot.yml +++ b/.github/workflows/snapshot.yml @@ -34,7 +34,7 @@ jobs: - name: Run GoReleaser uses: goreleaser/goreleaser-action@v4 with: - version: latest + version: "~> v2" args: release --snapshot key: ${{ secrets.YOUR_PRIVATE_KEY }} env: diff --git a/.goreleaser.yml b/.goreleaser.yml index 623cac0c..a5a628f2 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,3 +1,4 @@ +version: 2 builds: - binary: "{{ .ProjectName }}_v{{ .Version }}" env: @@ -37,4 +38,4 @@ signs: - "--detach-sign" - "${artifact}" snapshot: - name_template: "{{ .Version }}-next" + version_template: "{{ .Version }}-next"