Skip to content

Commit 5158e46

Browse files
committed
Update workflow to use PyPI's trusted publishing
1 parent 198644f commit 5158e46

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/CI.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,12 +107,12 @@ jobs:
107107
runs-on: ubuntu-latest
108108
if: "startsWith(github.ref, 'refs/tags/')"
109109
needs: [linux, windows, macos, sdist]
110+
permissions:
111+
id-token: write
110112
steps:
111113
- uses: actions/download-artifact@v4
112114
- name: Publish to PyPI
113115
uses: PyO3/maturin-action@v1
114-
env:
115-
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
116116
with:
117117
command: upload
118118
args: --non-interactive --skip-existing wheels-*/*

0 commit comments

Comments
 (0)