diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index f8e6dad2..cf991c9b 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,4 +1,4 @@ -name: Publish to PyPi +name: Publish to PyPI on: release: @@ -90,5 +90,12 @@ jobs: name: package path: dist - - name: Publish package + - name: Publish package to Test PyPI + if: ${{ vars.PUBLISH_TO_TEST_PYPI == 'true' }} + uses: pypa/gh-action-pypi-publish@release/v1 + with: + repository-url: https://test.pypi.org/legacy/ + + - name: Publish package to PyPI + if: ${{ vars.PUBLISH_TO_PYPI == 'true' }} uses: pypa/gh-action-pypi-publish@release/v1 \ No newline at end of file