From fa073feefa8907dde538b65f4c9fb36ec410b15b Mon Sep 17 00:00:00 2001 From: Mohammed Al Sahaf Date: Thu, 6 Jun 2024 11:08:32 +0300 Subject: [PATCH] ci: update goreleaser config for v2 Signed-off-by: Mohammed Al Sahaf --- .github/workflows/release.yml | 2 +- .goreleaser.yml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 53fa90d..503fc45 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -101,7 +101,7 @@ jobs: uses: goreleaser/goreleaser-action@v5 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 0ba669b..00e1626 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.