Skip to content

Commit

Permalink
Try to get wheels onto the release
Browse files Browse the repository at this point in the history
  • Loading branch information
honnibal committed Jul 22, 2024
1 parent 35417c3 commit a594632
Showing 1 changed file with 4 additions and 20 deletions.
24 changes: 4 additions & 20 deletions .github/workflows/cibuildwheel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Build
on:
release:
types:
- published
- created

jobs:
build_wheels:
Expand All @@ -30,6 +30,7 @@ jobs:
with:
name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
path: ./wheelhouse/*.whl
upload_url: ${{ github.event.release.upload_url }}

build_sdist:
name: Build source distribution
Expand All @@ -44,22 +45,5 @@ jobs:
with:
name: cibw-sdist
path: dist/*.tar.gz
upload_pypi:
needs: [build_wheels, build_sdist]
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/cymem
permissions:
id-token: write
if: github.event_name == 'release' && github.event.action == 'published'
# or, alternatively, upload to PyPI on every tag starting with 'v' (remove on: release above to use this)
# if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
steps:
- uses: actions/download-artifact@v4
with:
# unpacks all CIBW artifacts into dist/
pattern: cibw-*
path: dist
merge-multiple: true
- uses: pypa/gh-action-pypi-publish@release/v1
upload_url: ${{ github.event.release.upload_url }}

0 comments on commit a594632

Please sign in to comment.