From de3e5cf5c799b9f1f1b279879e971a2aebeda961 Mon Sep 17 00:00:00 2001 From: Dolev Hadar Date: Wed, 5 Jun 2024 23:09:46 +0300 Subject: [PATCH] chore: upgrade goreleaser --- .github/workflows/go-release.yml | 14 ++++++++------ .goreleaser.yaml | 2 ++ 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/workflows/go-release.yml b/.github/workflows/go-release.yml index 08c4bfe3..283eb7ff 100644 --- a/.github/workflows/go-release.yml +++ b/.github/workflows/go-release.yml @@ -12,18 +12,20 @@ jobs: goreleaser: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - name: Checkout + uses: actions/checkout@v4 with: fetch-depth: 0 - - run: git fetch --force --tags - - uses: actions/setup-go@v4 + - name: Set up Go + uses: actions/setup-go@v5 with: go-version: ">=1.21.0" cache: true - - uses: goreleaser/goreleaser-action@v5 + - name: Run GoReleaser + uses: goreleaser/goreleaser-action@v6 with: distribution: goreleaser - version: latest - args: release --clean --verbose + version: "~> v2" + args: release --clean --draft env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 27017e19..06a96eb0 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -1,3 +1,5 @@ +version: 2 + before: hooks: - go mod tidy