File tree Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -276,12 +276,24 @@ jobs:
276
276
$newName = "$name-$suffix.whl"
277
277
echo "wheel_name=$newName" | Out-File -FilePath $env:GITHUB_OUTPUT -Encoding utf8
278
278
279
- - name : Upload Release Asset
279
+ - name : Upload Release Asset (Unix)
280
+ if : runner.os != 'Windows'
281
+ uses : actions/upload-release-asset@v1
282
+ env :
283
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
284
+ with :
285
+ upload_url : ${{ needs.create_release.outputs.upload_url }}
286
+ asset_path : ${{ steps.find_wheel_unix.outputs.wheel_path }}
287
+ asset_name : ${{ steps.find_wheel_unix.outputs.wheel_name }}
288
+ asset_content_type : application/zip
289
+
290
+ - name : Upload Release Asset (Windows)
291
+ if : runner.os == 'Windows'
280
292
uses : actions/upload-release-asset@v1
281
293
env :
282
294
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
283
295
with :
284
296
upload_url : ${{ needs.create_release.outputs.upload_url }}
285
- asset_path : ${{ runner.os == 'Windows' && steps.find_wheel_windows.outputs.wheel_path || steps.find_wheel_unix .outputs.wheel_path }}
286
- asset_name : ${{ runner.os == 'Windows' && steps.find_wheel_windows.outputs.wheel_name || steps.find_wheel_unix .outputs.wheel_name }}
297
+ asset_path : ${{ steps.find_wheel_windows.outputs.wheel_path }}
298
+ asset_name : ${{ steps.find_wheel_windows.outputs.wheel_name }}
287
299
asset_content_type : application/zip
You can’t perform that action at this time.
0 commit comments