From 3873a1465e1a08f6a8592470fc8e5009bf41025e Mon Sep 17 00:00:00 2001 From: Ben Meier Date: Thu, 20 Jun 2024 15:44:45 +0100 Subject: [PATCH] fix(ci): fixed goreleaser file Signed-off-by: Ben Meier --- .github/workflows/release.yaml | 6 +++++- .goreleaser.yaml | 3 ++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index b4f9b72..0be41e7 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-compose ./cmd/score-compose/main.go + 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 diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 847a3a3..7f8a413 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-compose homepage: "https://score.dev" - tap: + repository: owner: score-spec name: homebrew-tap token: "{{ .Env.TAP_GITHUB_TOKEN }}"