Skip to content

Commit

Permalink
Test building release wheels on PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
saghul committed Nov 25, 2024
1 parent 1a197b2 commit f770a07
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/release-wheels.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Release Wheels

on:
pull_request:
release:
types:
- published
Expand Down Expand Up @@ -33,11 +34,12 @@ jobs:
upload_pypi:
needs: [build_wheels, build_sdist]
runs-on: ubuntu-latest
# upload to PyPI when a GitHub Release is created
if: github.event_name == 'release' && github.event.action == 'published'
steps:
- uses: actions/download-artifact@v4
- uses: pypa/gh-action-pypi-publish@release/v1
- run: ls -lR dist
- name: Upload to PyPI
if: github.event_name == 'release' && github.event.action == 'published'
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.pypi_password }}

0 comments on commit f770a07

Please sign in to comment.