From ff8268ac02383dcfe290c67fc8c15c599fe5755c Mon Sep 17 00:00:00 2001 From: Mohammed Al Sahaf Date: Thu, 6 Jun 2024 11:33:09 +0300 Subject: [PATCH] ci: update goreleaser config for v2 (#191) Signed-off-by: Mohammed Al Sahaf --- .github/workflows/ci.yml | 2 +- .github/workflows/release.yml | 4 ++-- .goreleaser.yml | 2 ++ 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index dfe04d0..eb0e664 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -121,7 +121,7 @@ jobs: # Calculate the short SHA1 hash of the git commit echo "short_sha=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT - - uses: goreleaser/goreleaser-action@v5 + - uses: goreleaser/goreleaser-action@v6 with: version: latest args: check diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 53fa90d..c51203d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -98,10 +98,10 @@ jobs: # GoReleaser will take care of publishing those artifacts into the release - name: Run GoReleaser - uses: goreleaser/goreleaser-action@v5 + uses: goreleaser/goreleaser-action@v6 with: version: latest - args: release --rm-dist + args: release --clean env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} TAG: ${{ steps.vars.outputs.version_tag }} diff --git a/.goreleaser.yml b/.goreleaser.yml index cf44d96..d57e2d7 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,3 +1,5 @@ +version: 2 + before: hooks: # The build is done in this particular way to build xcaddy in a designated directory named in .gitignore.