Commit 07f1a3f 1 parent f2170b7 commit 07f1a3f Copy full SHA for 07f1a3f
File tree 1 file changed +9
-4
lines changed
1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change 92
92
upload_pypi :
93
93
needs : [ build-dists ]
94
94
runs-on : ubuntu-latest
95
+ environment : publish
96
+ permissions :
97
+ id-token : write
95
98
if : github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/')
96
99
97
100
steps :
@@ -117,7 +120,12 @@ jobs:
117
120
- name : Download artifacts
118
121
uses : actions/download-artifact@v4
119
122
with :
120
- pattern : distributions-*
123
+ # There is currently a bug where download-artifact downloading multiple files of the same name corrupts the file.
124
+ # https://github.com/actions/download-artifact/issues/298
125
+ # Very cool.
126
+ # We don't have any native code so using the latest Ubuntu artifact should be OK.
127
+ # pattern: distributions-*
128
+ pattern : distributions-ubuntu-latest-3.13-pypi
121
129
merge-multiple : true
122
130
path : dist
123
131
@@ -139,6 +147,3 @@ jobs:
139
147
140
148
- name : Publish packages to PyPI
141
149
142
- with :
143
- user : __token__
144
- password : ${{ secrets.pypi_api_token }}
You can’t perform that action at this time.
0 commit comments