PyO3 / maturin-action

GitHub Action to install and run a custom maturin command with built-in support for cross compilation
MIT License
123 stars 31 forks source link

feature request: support PyPI OIDC #255

Closed sxlijin closed 3 months ago

sxlijin commented 3 months ago

It would be nice if I could use their OIDC with maturin-action; to get around this, I ended up doing some shenanigans to get our (new) release process working with OIDC, which publishes artifacts built using maturin:

  build:
      ... some matrix stuff ...

      - name: Upload wheels
        uses: actions/upload-artifact@v4
        with:
          name: wheels-${{ matrix._.name }}
          path: dist

  publish:
    runs-on: ubuntu-latest
    needs: [build]
    steps:
      - uses: actions/download-artifact@v4

      - run: mkdir dist && mv wheels-*/* dist

      # authz is managed via OIDC configured at https://pypi.org/manage/project/$PROJECT/settings/publishing/
      - name: Publish package to PyPI
        uses: pypa/gh-action-pypi-publish@release/v1
        with:
          skip-existing: true
messense commented 3 months ago

Duplicate of #173 which was done in maturin.