diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1894dc2..c672026 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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