diff --git a/.github/workflows/pypi.yml b/.github/workflows/pypi.yml index eb70597..2f706c0 100644 --- a/.github/workflows/pypi.yml +++ b/.github/workflows/pypi.yml @@ -9,6 +9,8 @@ jobs: build-n-publish: name: Build and publish to PyPI and TestPyPI runs-on: ubuntu-22.04 + permissions: + id-token: write steps: - uses: actions/checkout@v4 - name: Set up Python 3.8 @@ -29,13 +31,11 @@ jobs: if: startsWith(github.ref, 'refs/tags') uses: pypa/gh-action-pypi-publish@release/v1 with: - user: __token__ password: ${{ secrets.TEST_PYPI_API_TOKEN }} - repository_url: https://test.pypi.org/legacy/ + repository-url: https://test.pypi.org/legacy/ - name: Publish distribution to PyPI if: startsWith(github.ref, 'refs/tags') uses: pypa/gh-action-pypi-publish@release/v1 with: - user: __token__ password: ${{ secrets.PYPI_API_TOKEN }}