diff --git a/.github/workflows/release_to_pypi.yml b/.github/workflows/release_to_pypi.yml index 938fee4..65b256a 100644 --- a/.github/workflows/release_to_pypi.yml +++ b/.github/workflows/release_to_pypi.yml @@ -39,11 +39,19 @@ jobs: python -m pip install --upgrade build twine python -m build twine check --strict dist/* - - name: Publish distribution to PyPI + + - name: Publish distribution to Test PyPI + if: startsWith(github.ref, 'refs/tags') uses: pypa/gh-action-pypi-publish@master with: - user: __token__ - password: ${{ secrets.PYPI_API_TOKEN }} + password: ${{ secrets.PYPI_API_TOKEN }} + repository_url: https://test.pypi.org/legacy/ + + # - name: Publish distribution to PyPI + # uses: pypa/gh-action-pypi-publish@master + # with: + # user: __token__ + # password: ${{ secrets.PYPI_API_TOKEN }} - name: Create GitHub Release id: create_release