From 4322734a7b7e5da412eb4228cf7d49f371b957b4 Mon Sep 17 00:00:00 2001 From: Marko Juraga Date: Thu, 6 Jun 2024 13:00:14 +0200 Subject: [PATCH] BUILD/MINOR: goreleaser: Upgrade to goreleaser v2 --- .github/workflows/.goreleaser.yml | 4 ++-- .github/workflows/manual_goreleaser.yml | 4 ++-- .goreleaser.yml | 3 ++- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/.goreleaser.yml b/.github/workflows/.goreleaser.yml index 85bc5876..013845cb 100644 --- a/.github/workflows/.goreleaser.yml +++ b/.github/workflows/.goreleaser.yml @@ -18,10 +18,10 @@ jobs: go-version-file: 'go.mod' check-latest: true - name: Run GoReleaser - uses: goreleaser/goreleaser-action@v4 + uses: goreleaser/goreleaser-action@v6 with: distribution: goreleaser version: latest - args: release --clean --skip-announce + args: release --clean env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/manual_goreleaser.yml b/.github/workflows/manual_goreleaser.yml index 47fd76af..10fd578a 100644 --- a/.github/workflows/manual_goreleaser.yml +++ b/.github/workflows/manual_goreleaser.yml @@ -19,10 +19,10 @@ jobs: run: | git checkout $(git describe --tags --abbrev=0) - name: Run GoReleaser - uses: goreleaser/goreleaser-action@v4 + uses: goreleaser/goreleaser-action@v6 with: distribution: goreleaser version: latest - args: release --clean --skip-announce + args: release --clean env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.goreleaser.yml b/.goreleaser.yml index a925a587..1f3b1ce5 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,4 +1,5 @@ --- +version: 2 before: hooks: - go mod download @@ -62,7 +63,7 @@ release: draft: true name_template: "HAProxy Data Plane API v{{.Version}}" nfpms: - - + - id: my-package package_name: dataplaneapi builds: