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: