From 0278ae581e75bae71c89ecc5a5bd161d63e6e4c4 Mon Sep 17 00:00:00 2001 From: Hashem Hashem Date: Wed, 9 Nov 2022 13:18:20 +0100 Subject: [PATCH] fix(ci): fetch git tags before running goreleaser Otherwise goreleaser does not publish artifacts to the correct release. --- .github/workflows/ci.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3ffdead..9b9c4e3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -42,6 +42,10 @@ jobs: github-token: ${{ secrets.GITHUB_TOKEN }} allow-initial-development-versions: true + # Update tags for goreleaser to choose latest version + - name: Fetch tags + run: git fetch --force --tags + - name: Run goreleaser uses: goreleaser/goreleaser-action@v3.2.0 with: