Skip to content

Commit

Permalink
build: Re-introduce auto-snapshot functionality for GoReleaser
Browse files Browse the repository at this point in the history
  • Loading branch information
marvin-roesch committed Oct 25, 2024
1 parent a8d7289 commit ef6aa7c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,14 @@ jobs:
uses: actions/setup-go@v5
with:
go-version: 1.23
- name: Check for snapshot build
if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
run: echo "goreleaser_flags=--snapshot" >> $GITHUB_ENV
- name: Build and Publish with GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
version: ~> v2
args: release --clean
args: release --clean ${{ env.flags }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload assets
Expand Down

0 comments on commit ef6aa7c

Please sign in to comment.