File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -216,6 +216,9 @@ jobs:
216216 pypi-publish :
217217 needs : [sync-and-tag, build]
218218 runs-on : ubuntu-latest
219+ permissions :
220+ contents : read
221+ id-token : write
219222 steps :
220223 - name : Checkout
221224 uses : actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
@@ -234,7 +237,7 @@ jobs:
234237 python-version : ' 3.12'
235238
236239 - name : Install build tools
237- run : pip install build twine
240+ run : pip install build
238241
239242 - name : Stage binaries
240243 run : |
@@ -265,7 +268,6 @@ jobs:
265268 run : python -m build pypi/socket-patch
266269
267270 - name : Publish to PyPI
268- env :
269- TWINE_USERNAME : __token__
270- TWINE_PASSWORD : ${{ secrets.PYPI_TOKEN }}
271- run : twine upload pypi/socket-patch/dist/*
271+ uses : pypa/gh-action-pypi-publish@76f52bc884231f62b54a752e1b56a22940bc7640 # v1.12.4
272+ with :
273+ packages-dir : pypi/socket-patch/dist/
You can’t perform that action at this time.
0 commit comments