diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0bba55b9..1dfc0384 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -180,9 +180,6 @@ jobs: if: startsWith(github.ref, 'refs/tags/') name: Release runs-on: ubuntu-latest - env: - TWINE_PASSWORD: ${{secrets.TWINE_PASSWORD}} - TWINE_USERNAME: ${{secrets.TWINE_USERNAME}} needs: [ build-linux-x86_64, build-linux-cross, @@ -190,13 +187,13 @@ jobs: build-macos-universal, build-sdist, ] + permissions: + id-token: write steps: - uses: actions/download-artifact@v3 with: name: wheels path: wheels - - uses: actions/setup-python@v5 + - uses: pypa/gh-action-pypi-publish@release/v1 with: - python-version: '3.11' - - run: python -m pip install -U pip wheel twine - - run: twine upload --non-interactive --skip-existing wheels/* + packages-dir: wheels/