From 435b9ad4dfb9fce4c6efade1c5ae828ab7dd0283 Mon Sep 17 00:00:00 2001 From: Ivo Vellekoop Date: Fri, 11 Oct 2024 12:41:57 +0200 Subject: [PATCH] Update testpypi.yml --- .github/workflows/testpypi.yml | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/.github/workflows/testpypi.yml b/.github/workflows/testpypi.yml index a9fc5c7..4198fb7 100644 --- a/.github/workflows/testpypi.yml +++ b/.github/workflows/testpypi.yml @@ -1,10 +1,11 @@ name: Publish to TestPyPI using Poetry -# trigger upload on a new push to master on: push: branches: - - master + - master # trigger upload on a new push to master + tags: + - 'v*' # provided it is tagged with a tag starting with 'v' jobs: build: @@ -40,12 +41,6 @@ jobs: poetry install poetry build - # Publish to TestPyPI - #- name: Publish to TestPyPI - # run: | - # poetry config repositories.testpypi https://test.pypi.org/legacy/ - # poetry publish --repository testpypi - - name: Publish package distributions to TestPyPI uses: pypa/gh-action-pypi-publish@release/v1 with: