Skip to content

Commit 2a57e9d

Browse files
authored
wheel.yml uses Trusted Publisher pattern
1 parent 6e9fa67 commit 2a57e9d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/wheel.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,9 @@ jobs:
9393
needs: [make-wheels, make-sdist]
9494
runs-on: ubuntu-latest
9595
if: github.event_name == 'release' && github.event.action == 'published'
96+
environment: release
97+
permissions:
98+
id-token: write
9699
steps:
97100
- name: Download all artifacts
98101
uses: actions/download-artifact@v4
@@ -106,6 +109,3 @@ jobs:
106109
107110
- name: Upload
108111
uses: pypa/[email protected]
109-
with:
110-
user: ${{ secrets.PYPI_USERNAME }}
111-
password: ${{ secrets.PYPI_PASSWORD }}

0 commit comments

Comments
 (0)