Skip to content

Commit

Permalink
Fix Goreleaser build (#71)
Browse files Browse the repository at this point in the history
Signed-off-by: peterdeme <[email protected]>
  • Loading branch information
peterdeme authored Nov 27, 2023
1 parent 60c6494 commit f3a6677
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/goreleaser/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 "[email protected]"
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
Expand Down

0 comments on commit f3a6677

Please sign in to comment.