From feab35e5c6740cad8800f9f3910ae132d14fe8f0 Mon Sep 17 00:00:00 2001 From: Jonathan Buch Date: Sun, 4 Aug 2024 14:45:30 +0200 Subject: [PATCH] Update goreleaser --- .github/workflows/release.yml | 4 ++-- .goreleaser.yaml | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 26a8b2d..3d8cb03 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -45,9 +45,9 @@ jobs: # Finally run the release - name: Run GoReleaser - uses: goreleaser/goreleaser-action@v5 + uses: goreleaser/goreleaser-action@v6 with: - version: latest + version: "~> v2" args: release --clean env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 9e1de8c..9a8ac8d 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -1,3 +1,6 @@ +--- +version: 2 + # Before building anything, we need to ensure that go modules and generators are set up correctly before: hooks: