diff --git a/.github/workflows/_gorelease.yml b/.github/workflows/_gorelease.yml index a65a33856..fc8565f44 100644 --- a/.github/workflows/_gorelease.yml +++ b/.github/workflows/_gorelease.yml @@ -13,6 +13,8 @@ jobs: uses: actions/checkout@v3 with: fetch-depth: 0 + - if: ${{ !startsWith(github.ref, 'refs/tags/v') }} + run: echo "flags=--snapshot" >> $GITHUB_ENV - name: Setup Go uses: actions/setup-go@v3 with: @@ -22,7 +24,7 @@ jobs: with: distribution: goreleaser version: latest - args: release --rm-dist + args: release --rm-dist ${{ env.flags }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - uses: actions/upload-artifact@v3