Skip to content

Commit

Permalink
pypi publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
marius committed Dec 4, 2024
1 parent 3fa5ee3 commit e06f610
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:

pypi-publish:
name: Upload release to PyPI
if: startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes
if: github.event_name == 'release' && github.event.action == 'published'
needs: [build_wheels, make_sdist]
runs-on: ubuntu-latest
environment:
Expand All @@ -68,6 +68,8 @@ jobs:
uses: actions/download-artifact@v4
with:
pattern: cibw-*
path: dist/
path: dist
merge-multiple: true
verbose: true
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit e06f610

Please sign in to comment.