diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0074aa02..29158aa6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -108,7 +108,7 @@ jobs: uses: actions/upload-artifact@v4 if: github.event_name == 'release' && github.event.action == 'published' with: - name: artifact-wheels + name: artifact-wheels-${{ matrix.os }} path: ./wheelhouse/*.whl build_sdist: @@ -136,6 +136,8 @@ jobs: upload_pypi: needs: [build_wheels, build_sdist] runs-on: ubuntu-latest + permissions: + id-token: write if: github.event_name == 'release' && github.event.action == 'published' steps: - uses: actions/download-artifact@v4 @@ -144,7 +146,5 @@ jobs: path: dist pattern: artifact-* - - uses: pypa/gh-action-pypi-publish@master - with: - user: __token__ - password: ${{ secrets.PYPI_API_TOKEN }} + - name: Publish package distributions to PyPI + uses: pypa/gh-action-pypi-publish@release/v1