Skip to content

Commit

Permalink
use id-toekn to release
Browse files Browse the repository at this point in the history
  • Loading branch information
ringsaturn committed Sep 15, 2024
1 parent 1c1226f commit 98f7617
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/release-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,15 +97,16 @@ jobs:
release:
name: Release
runs-on: ubuntu-latest
environment: release
permissions:
id-token: write
needs: [macos, linux, windows, sdist]
steps:
- uses: actions/download-artifact@v4

- name: Publish to PyPI
uses: messense/maturin-action@v1
if: github.event_name == 'release' && github.event.action == 'published'
env:
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
with:
command: upload
args: --skip-existing wheels-*/*

0 comments on commit 98f7617

Please sign in to comment.