diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index 2f81a8d2..a8090fdc 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -7,6 +7,8 @@ on: pull_request: branches: - master + release: + types: [published] jobs: build_wheels: @@ -186,3 +188,15 @@ jobs: with: name: ${{ env.PACKAGE_NAME }}-${{ env.PACKAGE_VERSION }}-cp${{ matrix.cibw_python }}-${{ matrix.platform_id }} path: ./wheelhouse/cp${{ matrix.cibw_python }}-${{ matrix.platform_id }}/*.whl + + - name: Upload release asset + # Previously was using actions/upload-release-asset@v1 , but this had some + # errors with large files + uses: ncipollo/release-action@v1.11.1 + if: ${{ github.event_name == 'release' }} + with: + allowUpdates: true + omitBodyDuringUpdate: true + omitNameDuringUpdate: true + artifacts: ./wheelhouse/cp${{ matrix.cibw_python }}-${{ matrix.platform_id }}/*.whl + token: ${{ secrets.GITHUB_TOKEN }}