Skip to content

Commit

Permalink
Upload release wheels even if some jobs fail. (#660)
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamHillier authored Jun 11, 2021
1 parent f0b44f8 commit 950e66e
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -236,28 +236,31 @@ jobs:

upload-wheels:
name: Publish wheels to PyPi
if: github.event_name == 'release'
if: always() && github.event_name == 'release'
needs: [manylinux-release-wheel, macos-release-wheel, windows-release-wheel]
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v2
with:
name: Linux-wheels
path: Linux-wheels
if: ${{ needs.manylinux-release-wheel.result == 'success' }}
- uses: actions/download-artifact@v2
with:
name: macOS-wheels
path: macOS-wheels
if: ${{ needs.macos-release-wheel.result == 'success' }}
- uses: actions/download-artifact@v2
with:
name: Windows-wheels
path: Windows-wheels
if: ${{ needs.windows-release-wheel.result == 'success' }}
- run: |
set -e -x
set -x
mkdir -p dist
cp Linux-wheels/*.whl dist/
cp macOS-wheels/*.whl dist/
cp Windows-wheels/*.whl dist/
cp Linux-wheels/*.whl dist/ || true
cp macOS-wheels/*.whl dist/ || true
cp Windows-wheels/*.whl dist/ || true
ls -la dist/
sha256sum dist/*.whl
- uses: pypa/gh-action-pypi-publish@master
Expand Down

0 comments on commit 950e66e

Please sign in to comment.