diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9328e2f..42ff77d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,6 +11,8 @@ jobs: pypi: name: PyPI runs-on: ubuntu-latest + permissions: + id-token: write steps: - name: Check out the repository uses: actions/checkout@v4 @@ -38,14 +40,9 @@ jobs: - name: Publish package on PyPI if: ${{ github.event_name == 'release' }} uses: pypa/gh-action-pypi-publish@v1.8.11 - with: - user: __token__ - password: ${{ secrets.PYPI_TOKEN }} - name: Publish package on TestPyPI if: ${{ github.event_name != 'release' }} uses: pypa/gh-action-pypi-publish@v1.8.11 with: - user: __token__ - password: ${{ secrets.TEST_PYPI_TOKEN }} repository_url: https://test.pypi.org/legacy/