diff --git a/.github/workflows/pypi-publish.yml b/.github/workflows/pypi-publish.yml index 166b058..1d466b3 100644 --- a/.github/workflows/pypi-publish.yml +++ b/.github/workflows/pypi-publish.yml @@ -6,8 +6,8 @@ name: Upload Python Package to PyPi on: # Triggers the workflow when a release is created - # release: - # types: [published] + release: + types: [published] # Allows you to run this workflow manually from the Actions tab workflow_dispatch: @@ -42,6 +42,14 @@ jobs: pip install twine pip install .[build] + - name: Build and publish distribution 📦 to Test PyPI + env: + TWINE_USERNAME: ${{ secrets.TEST_PYPI_USERNAME }} + TWINE_PASSWORD: ${{ secrets.TEST_PYPI_PASSWORD }} + run: | + python setup.py sdist bdist_wheel + twine upload --repository testpypi dist/* + - name: Build and publish distribution 📦 to PyPI env: TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} diff --git a/.github/workflows/pypi-test-publish.yml b/.github/workflows/pypi-test-publish.yml index a5395d9..2d22a38 100644 --- a/.github/workflows/pypi-test-publish.yml +++ b/.github/workflows/pypi-test-publish.yml @@ -6,8 +6,8 @@ name: Upload Python Package to TestPyPi on: # Triggers the workflow when a release is created - release: - types: [published] + # release: + # types: [published] # Allows you to run this workflow manually from the Actions tab workflow_dispatch: