From 57b2e375a7e7796db0a70627a4fbb77b45ff9c86 Mon Sep 17 00:00:00 2001 From: Ivo Vellekoop Date: Fri, 11 Oct 2024 16:20:19 +0200 Subject: [PATCH] Update pypi.yml --- .github/workflows/pypi.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pypi.yml b/.github/workflows/pypi.yml index 97b4316..72ddb46 100644 --- a/.github/workflows/pypi.yml +++ b/.github/workflows/pypi.yml @@ -2,12 +2,12 @@ name: Publish to TestPyPI using Poetry on: push: - branches: - - 'master' # only on the master branch + tags: + - 'v0*' # only when the commit was tagged with a tag starting with v0 jobs: build: - if: startsWith(github.ref, 'refs/tags/v') # only when the commit was tagged with a tag starting with v + if: github.ref_name == 'master' runs-on: ubuntu-latest environment: