diff --git a/.github/workflows/publish-commits-to-pypi-test.yaml b/.github/workflows/publish-commits-to-pypi-test.yaml index f180092..8308350 100644 --- a/.github/workflows/publish-commits-to-pypi-test.yaml +++ b/.github/workflows/publish-commits-to-pypi-test.yaml @@ -8,6 +8,8 @@ on: - bananapants jobs: build: + #if: ${{ startsWith(github.ref, 'refs/tags/') }} # only publish to test.pypi.org on tagged commits from test branch + if: startsWith(github.ref, 'refs/tags/v') environment: name: testpypi url: https://test.pypi.org/p/dcnodatg @@ -33,6 +35,7 @@ jobs: name: python-package-distributions path: dist/ publish-to-testpypi: + if: startsWith(github.ref, 'refs/tags/v') environment: name: testpypi url: https://test.pypi.org/p/dcnodatg