From ec5e811c8baee55a843834ef6bc4910bb9164ca7 Mon Sep 17 00:00:00 2001 From: "Pierre R. Mai" Date: Mon, 15 Jul 2024 13:26:16 +0200 Subject: [PATCH] Ensure only actual releases get published on PyPI Signed-off-by: Pierre R. Mai --- .github/workflows/protobuf.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/protobuf.yml b/.github/workflows/protobuf.yml index 0e15a3ed3..e0398dc6c 100644 --- a/.github/workflows/protobuf.yml +++ b/.github/workflows/protobuf.yml @@ -250,5 +250,5 @@ jobs: repository-url: https://test.pypi.org/legacy/ - name: Publish Full Release on PyPI - if: startsWith(github.ref, 'refs/tags/v') + if: startsWith(github.ref, 'refs/tags/v') && ( ! contains(github.ref, '-') ) uses: pypa/gh-action-pypi-publish@release/v1