Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature request: support PyPI OIDC #255

Closed
sxlijin opened this issue Apr 6, 2024 · 1 comment
Closed

feature request: support PyPI OIDC #255

sxlijin opened this issue Apr 6, 2024 · 1 comment

Comments

@sxlijin
Copy link

sxlijin commented Apr 6, 2024

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
Copy link
Member

messense commented Apr 6, 2024

Duplicate of #173 which was done in maturin.

@messense messense closed this as completed Apr 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants