diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4296fa6..fd462d4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -82,7 +82,8 @@ jobs: - run: go run golang.org/x/vuln/cmd/govulncheck@latest ./... release: - if: vars.BUILD_ON == 'github' && github.ref_type == 'tag' + # v* tags only, as on Gitea: any other tag pushed by hand is not a release. + if: vars.BUILD_ON == 'github' && github.ref_type == 'tag' && startsWith(github.ref_name, 'v') needs: [test] runs-on: ubuntu-latest env: