Skip to content

Commit

Permalink
Publish maturin itself using trusted publisher
Browse files Browse the repository at this point in the history
  • Loading branch information
messense committed May 9, 2023
1 parent d05c223 commit 10ecbb6
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,8 @@ jobs:

release-pypi:
permissions:
# Used to sign the release's artifacts with sigstore-python.
# Used to sign the release's artifacts with sigstore-python
# and upload to PyPI using trusted publisher.
id-token: write
# Used to upload release artifacts.
contents: write
Expand All @@ -257,13 +258,11 @@ jobs:
name: wheels
- uses: actions/setup-python@v4
with:
python-version: 3.9
python-version: '3.10'
- name: Publish
env:
MATURIN_PASSWORD: ${{ secrets.MATURIN_PASSWORD }}
run: |
pip install maturin
maturin upload -u __token__ --skip-existing *
maturin upload --skip-existing *
- name: Set environment url
id: set_url
run: |
Expand Down

0 comments on commit 10ecbb6

Please sign in to comment.