diff --git a/.github/workflows/publish-to-test-pypi.yml b/.github/workflows/publish-to-test-pypi.yml index f0b421a..cdcb2d2 100644 --- a/.github/workflows/publish-to-test-pypi.yml +++ b/.github/workflows/publish-to-test-pypi.yml @@ -1,4 +1,4 @@ -name: Publish 🐍 📦 to PyPI and TestPyPI +name: Publish 🐍 📦 to PyPI on: push: @@ -21,8 +21,8 @@ jobs: pip install wheel python setup.py bdist_wheel python setup.py sdist --formats=gztar - - name: Publish 📦 to Test PyPI + - name: Publish 📦 to PyPI + if: startsWith(github.ref, 'refs/tags') uses: pypa/gh-action-pypi-publish@master with: - password: ${{ secrets.test_pypi_password }} - repository_url: https://test.pypi.org/legacy/ + password: ${{ secrets.pypi_password }}