From d3ba07346c2013aba15fca8ca5d57927f779264c Mon Sep 17 00:00:00 2001 From: Zachariah Aslam Date: Sun, 25 Jun 2023 13:56:14 -0400 Subject: [PATCH] switch to using API Token pending pypi/warehouse#11096 --- .github/workflows/publish-pypi.yaml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish-pypi.yaml b/.github/workflows/publish-pypi.yaml index d4b7609..93182ff 100755 --- a/.github/workflows/publish-pypi.yaml +++ b/.github/workflows/publish-pypi.yaml @@ -58,13 +58,17 @@ jobs: with: # Update to dynamic based on environment repository_url: https://test.pypi.org/legacy/ - verbose: true - # user: __token__ - # password: ${{ secrets.PYPI_TOKEN }} + # TODO: Remove token flow once https://github.com/pypi/warehouse/issues/11096 is resolved + user: __token__ + password: ${{ secrets.PYPI_TOKEN }} - name: Publish package uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29 if: inputs.environment == 'release-pypi' + with: + # TODO: Remove token flow once https://github.com/pypi/warehouse/issues/11096 is resolved + user: __token__ + password: ${{ secrets.PYPI_TOKEN }} - name: 🗑️ Delete packaging Artifacts uses: geekyeggo/delete-artifact@v1