File tree 1 file changed +6
-0
lines changed
1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,10 @@ concurrency:
25
25
group : ${{ github.workflow }}-${{ github.ref }}
26
26
cancel-in-progress : true
27
27
28
+ permissions :
29
+ # For PyPI Trusted Publisher
30
+ id-token : write
31
+
28
32
jobs :
29
33
build_sdist :
30
34
name : Build SDist
@@ -225,6 +229,7 @@ jobs:
225
229
226
230
# Upload to PyPI
227
231
- uses : pypa/gh-action-pypi-publish@release/v1
232
+ name : Upload to PyPI
228
233
if : github.event_name == 'release' || (github.event_name == 'workflow_dispatch' && github.event.inputs.upload_dest == 'PyPI')
229
234
with :
230
235
# 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:
234
239
235
240
# Upload to Test PyPI
236
241
- uses : pypa/gh-action-pypi-publish@release/v1
242
+ name : Upload to Test PyPI
237
243
if : github.event_name == 'workflow_dispatch' && github.event.inputs.upload_dest == 'Test PyPI'
238
244
with :
239
245
# 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