From f3a66771b3365ca681a6326c60ce75ae2d3f901a Mon Sep 17 00:00:00 2001 From: Peter Deme Date: Mon, 27 Nov 2023 13:00:20 +0100 Subject: [PATCH] Fix Goreleaser build (#71) Signed-off-by: peterdeme --- .github/workflows/goreleaser/action.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/goreleaser/action.yml b/.github/workflows/goreleaser/action.yml index ab9f06c..840158f 100644 --- a/.github/workflows/goreleaser/action.yml +++ b/.github/workflows/goreleaser/action.yml @@ -33,6 +33,16 @@ runs: with: platforms: "linux/amd64,linux/arm64" + - name: Fake tag for Goreleaser + if: ${{ !startsWith(github.ref, 'refs/tags/') }} + shell: bash + run: | + # GoReleaser requires a tag to be present, so we + # create a fake one. + git config --global user.email "ci@spacelift.io" + git config --global user.name "Spacelift CI" + git tag -a v0.0.0 -m "Fake tag for Goreleaser" + - name: Run GoReleaser id: goreleaser uses: goreleaser/goreleaser-action@v5