File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -25,6 +25,10 @@ concurrency:
2525 group : ${{ github.workflow }}-${{ github.ref }}
2626 cancel-in-progress : true
2727
28+ permissions :
29+ # For PyPI Trusted Publisher
30+ id-token : write
31+
2832jobs :
2933 build_sdist :
3034 name : Build SDist
@@ -225,6 +229,7 @@ jobs:
225229
226230 # Upload to PyPI
227231 - uses : pypa/gh-action-pypi-publish@release/v1
232+ name : Upload to PyPI
228233 if : github.event_name == 'release' || (github.event_name == 'workflow_dispatch' && github.event.inputs.upload_dest == 'PyPI')
229234 with :
230235 # PyPI does not allow replacing a file. Without this flag the entire action fails if even a single duplicate exists.
@@ -234,6 +239,7 @@ jobs:
234239
235240 # Upload to Test PyPI
236241 - uses : pypa/gh-action-pypi-publish@release/v1
242+ name : Upload to Test PyPI
237243 if : github.event_name == 'workflow_dispatch' && github.event.inputs.upload_dest == 'Test PyPI'
238244 with :
239245 # PyPI does not allow replacing a file. Without this flag the entire action fails if even a single duplicate exists.
You can’t perform that action at this time.
0 commit comments