File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -236,28 +236,31 @@ jobs:
236236
237237 upload-wheels :
238238 name : Publish wheels to PyPi
239- if : github.event_name == 'release'
239+ if : always() && github.event_name == 'release'
240240 needs : [manylinux-release-wheel, macos-release-wheel, windows-release-wheel]
241241 runs-on : ubuntu-latest
242242 steps :
243243 - uses : actions/download-artifact@v2
244244 with :
245245 name : Linux-wheels
246246 path : Linux-wheels
247+ if : ${{ needs.manylinux-release-wheel.result == 'success' }}
247248 - uses : actions/download-artifact@v2
248249 with :
249250 name : macOS-wheels
250251 path : macOS-wheels
252+ if : ${{ needs.macos-release-wheel.result == 'success' }}
251253 - uses : actions/download-artifact@v2
252254 with :
253255 name : Windows-wheels
254256 path : Windows-wheels
257+ if : ${{ needs.windows-release-wheel.result == 'success' }}
255258 - run : |
256- set -e - x
259+ set -x
257260 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
261264 ls -la dist/
262265 sha256sum dist/*.whl
263266 - uses : pypa/gh-action-pypi-publish@master
You can’t perform that action at this time.
0 commit comments