From d0050617e3c6b6876d8827cbccd93f89598f4d40 Mon Sep 17 00:00:00 2001 From: Ben Meier <1651305+astromechza@users.noreply.github.com> Date: Wed, 3 Jul 2024 22:03:06 +0100 Subject: [PATCH] fix(ci): fix goreleaser args (#19) * fix(ci): fix goreleaser args Signed-off-by: Ben Meier * fix(ci): goreleaser config Signed-off-by: Ben Meier --------- Signed-off-by: Ben Meier --- .github/workflows/release.yaml | 12 ++++++++---- .goreleaser.yaml | 3 ++- 2 files changed, 10 insertions(+), 5 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 }} diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 07e2611..bc229a4 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -1,4 +1,5 @@ # Check the documentation at https://goreleaser.com +version: 2 before: hooks: - go mod tidy @@ -33,7 +34,7 @@ changelog: brews: - name: score-k8s homepage: "https://score.dev" - tap: + repository: owner: score-spec name: homebrew-tap token: "{{ .Env.TAP_GITHUB_TOKEN }}"