Skip to content

Commit fb6bf26

Browse files
committed
Switch to using trusted publishing on PyPI
1 parent f5a2c17 commit fb6bf26

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/wheels.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,8 @@ jobs:
108108
name: Deploy to PyPI
109109
needs: [build_wheels, build_sdist]
110110
runs-on: ubuntu-latest
111+
permissions:
112+
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
111113
if: github.event_name == 'release' && github.event.action == 'created'
112114
steps:
113115
- uses: actions/checkout@v4
@@ -121,7 +123,6 @@ jobs:
121123
- name: Publish distribution to PyPI
122124
uses: pypa/gh-action-pypi-publish@release/v1
123125
with:
124-
password: ${{ secrets.pypi_token }}
125126
packages_dir: wheelhouse/
126127
# Deploy wheels and sdist to AWS S3 (main)
127128
deploy_s3:

0 commit comments

Comments
 (0)