Skip to content

Commit 3098f7c

Browse files
maresbaseyboldt
authored andcommitted
Add trusted publishing
1 parent ddbbed7 commit 3098f7c

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
@@ -259,6 +259,8 @@ jobs:
259259
runs-on: ubuntu-latest
260260
if: ${{ startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' }}
261261
needs: [linux, windows, macos, sdist]
262+
environment:
263+
name: pypi
262264
permissions:
263265
# Use to sign the release artifacts
264266
id-token: write
@@ -275,8 +277,6 @@ jobs:
275277
- name: Publish to PyPI
276278
if: ${{ startsWith(github.ref, 'refs/tags/') }}
277279
uses: PyO3/maturin-action@v1
278-
env:
279-
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
280280
with:
281281
command: upload
282282
args: --non-interactive --skip-existing wheels-*/*

0 commit comments

Comments
 (0)