From 811252f5a49ee6710afc57063f214ccd2d917264 Mon Sep 17 00:00:00 2001 From: Morten Lied Johansen Date: Fri, 18 Oct 2024 12:37:41 +0200 Subject: [PATCH] Update to goreleaser 2.3.2 --- .github/workflows/build.yaml | 4 ++-- .goreleaser.yaml | 11 +++++++++-- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 2636ffc..8fed4b6 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -75,8 +75,8 @@ jobs: uses: goreleaser/goreleaser-action@v6 with: distribution: goreleaser - version: v1.7.0 - args: release -f .goreleaser.yaml --rm-dist --debug + version: v2.3.2 + args: release --config .goreleaser.yaml --clean --verbose env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} HOMEBREW_PUSH_TOKEN: ${{ steps.get-homebrew-token.outputs.token }} diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 0488dbe..fd35182 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -1,4 +1,11 @@ +version: 2 + project_name: narc-cli + +before: + hooks: + - go mod tidy + builds: - targets: - linux_amd64 @@ -28,14 +35,14 @@ release: ## narc-cli ({{ .Version }}) brews: - - tap: + - repository: owner: nais name: homebrew-tap token: "{{ .Env.HOMEBREW_PUSH_TOKEN }}" name: narc homepage: "https://github.com/nais/narcos" description: "NAIS Administration CLI" - folder: Formula + directory: Formula install: | bin.install "narc" test: |