diff --git a/.github/workflows/publish-to-test-pypi.yml b/.github/workflows/publish-to-test-pypi.yml index 304031ba..4660b703 100644 --- a/.github/workflows/publish-to-test-pypi.yml +++ b/.github/workflows/publish-to-test-pypi.yml @@ -31,12 +31,13 @@ jobs: - name: twine check run: python -m twine check dist/* - name: Publish distribution 📦 to Test PyPI + if: ${{ !startsWith(github.event.ref, 'refs/tags') }} uses: pypa/gh-action-pypi-publish@master with: password: ${{ secrets.testpypi_password }} repository_url: https://test.pypi.org/legacy/ - name: Publish distribution 📦 to PyPI - if: startsWith(github.event.ref, 'refs/tags') + if: ${{ startsWith(github.event.ref, 'refs/tags') }} uses: pypa/gh-action-pypi-publish@master with: password: ${{ secrets.pypi_password }}