Skip to content

Commit

Permalink
Merge pull request #444 from cookpa/master
Browse files Browse the repository at this point in the history
ENH: attach wheels to releases
  • Loading branch information
cookpa authored Mar 28, 2023
2 parents 466e33b + 91fc6b8 commit fe83cf4
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ on:
pull_request:
branches:
- master
release:
types: [published]

jobs:
build_wheels:
Expand Down Expand Up @@ -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/[email protected]
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 }}

0 comments on commit fe83cf4

Please sign in to comment.