diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 39fd151..8400c5d 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -20,6 +20,10 @@ jobs: - uses: actions/checkout@v7 with: fetch-depth: 0 + - name: Ignore prerelease tags + if: "!contains(github.ref_name, '-')" + run: | + git tag -l | grep -E '\-dev|\-rc|\-beta|\-alpha' | xargs -r git tag -d - uses: actions/setup-go@v6 with: go-version-file: ./go.mod