From 9e7625bd914f76f01560725cbe7ac909efae0f63 Mon Sep 17 00:00:00 2001 From: Dax Pryce Date: Fri, 6 Jan 2023 18:37:47 +0000 Subject: [PATCH] Adding twine publication to testpypi. This will validate our release flow and publication to the test pypi repository. --- .github/workflows/python-release.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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 -