From 0a4d52c59dd0c6bbd289714d4c48811da39dbb15 Mon Sep 17 00:00:00 2001 From: Cory Walker Date: Sat, 19 Aug 2023 06:19:19 +0000 Subject: [PATCH] Add the required args. --- .github/workflows/go.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 2c87aec..9debe79 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -44,3 +44,10 @@ jobs: - name: GoReleaser Action uses: goreleaser/goreleaser-action@v4.4.0 + # Run only on new tag. + if: startsWith(github.ref, 'refs/tags/') + with: + version: latest + args: release --clean + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}