From 7d0eeb498efa77b8eb3e9aff603c7d66340f4733 Mon Sep 17 00:00:00 2001 From: Ben Meier Date: Wed, 3 Jul 2024 21:51:12 +0100 Subject: [PATCH] fix(ci): fix goreleaser args --- .github/workflows/release.yaml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 4b2abd7..e82a836 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -28,7 +28,11 @@ jobs: run: go test ./... -cover -race - name: Build binary - run: go build -o score-k8s ./ + uses: goreleaser/goreleaser-action@v6 + with: + distribution: goreleaser + version: '~> v2' + args: build --snapshot - name: Install license check tool run: go install github.com/google/addlicense@latest @@ -58,11 +62,11 @@ jobs: go-version-file: 'go.mod' - name: Run GoReleaser - uses: goreleaser/goreleaser-action@v3 + uses: goreleaser/goreleaser-action@v6 with: distribution: goreleaser - version: latest - args: release --rm-dist + version: '~> v2' + args: release --clean env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} TAP_GITHUB_TOKEN: ${{ secrets.TAP_GITHUB_TOKEN }}