diff --git a/.github/workflows/python-release.yml b/.github/workflows/python-release.yml index c817744e5..08d0ad9b3 100644 --- a/.github/workflows/python-release.yml +++ b/.github/workflows/python-release.yml @@ -37,6 +37,15 @@ jobs: run: | sha256sum wheelhouse/*.whl > checksums.txt cat checksums.txt + - uses: actions/setup-python@v3 + - name: Install twine + run: python -m pip install twine + - name: Publish with twine + env: + TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} + TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} + run: | + twine upload --repository testpypi wheelhouse/*.whl - name: Update release with SHA256 and Artifacts uses: softprops/action-gh-release@v1 with: @@ -44,4 +53,3 @@ jobs: files: | wheelhouse/*.whl checksums.txt -