From e255cc81d59535ad9311dc27d81c11d4402c7b66 Mon Sep 17 00:00:00 2001 From: cboylston <71150546+cboylston@users.noreply.github.com> Date: Tue, 16 Jul 2024 20:09:41 -0400 Subject: [PATCH] Update wheel-release.yml with id-token permissions --- .github/workflows/wheel-release.yml | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/.github/workflows/wheel-release.yml b/.github/workflows/wheel-release.yml index 31a9848..df266de 100644 --- a/.github/workflows/wheel-release.yml +++ b/.github/workflows/wheel-release.yml @@ -31,15 +31,6 @@ jobs: mv wheels/**/*.whl dist rm -rf wheels ls dist - - # see https://github.com/marketplace/actions/pypi-publish - - name: Publish to PyPI Test Server - uses: pypa/gh-action-pypi-publish@release/v1 - with: - verbose: true - user: __token__ - password: ${{ secrets.PYPI_TEST_API_TOKEN }} - repository_url: https://test.pypi.org/legacy/ # see https://github.com/marketplace/actions/create-release - name: Create release @@ -49,6 +40,11 @@ jobs: token: ${{ secrets.GITHUB_TOKEN }} tag: ${{ github.event.inputs.tag }} - - - + # see https://github.com/marketplace/actions/pypi-publish + - name: Publish to PyPI Test Server + uses: pypa/gh-action-pypi-publish@release/v1 + with: + verbose: true + user: __token__ + password: ${{ secrets.PYPI_TEST_API_TOKEN }} + repository_url: https://test.pypi.org/legacy/