File tree 1 file changed +8
-5
lines changed
1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -236,28 +236,31 @@ jobs:
236
236
237
237
upload-wheels :
238
238
name : Publish wheels to PyPi
239
- if : github.event_name == 'release'
239
+ if : always() && github.event_name == 'release'
240
240
needs : [manylinux-release-wheel, macos-release-wheel, windows-release-wheel]
241
241
runs-on : ubuntu-latest
242
242
steps :
243
243
- uses : actions/download-artifact@v2
244
244
with :
245
245
name : Linux-wheels
246
246
path : Linux-wheels
247
+ if : ${{ needs.manylinux-release-wheel.result == 'success' }}
247
248
- uses : actions/download-artifact@v2
248
249
with :
249
250
name : macOS-wheels
250
251
path : macOS-wheels
252
+ if : ${{ needs.macos-release-wheel.result == 'success' }}
251
253
- uses : actions/download-artifact@v2
252
254
with :
253
255
name : Windows-wheels
254
256
path : Windows-wheels
257
+ if : ${{ needs.windows-release-wheel.result == 'success' }}
255
258
- run : |
256
- set -e - x
259
+ set -x
257
260
mkdir -p dist
258
- cp Linux-wheels/*.whl dist/
259
- cp macOS-wheels/*.whl dist/
260
- cp Windows-wheels/*.whl dist/
261
+ cp Linux-wheels/*.whl dist/ || true
262
+ cp macOS-wheels/*.whl dist/ || true
263
+ cp Windows-wheels/*.whl dist/ || true
261
264
ls -la dist/
262
265
sha256sum dist/*.whl
263
266
- uses : pypa/gh-action-pypi-publish@master
You can’t perform that action at this time.
0 commit comments