Skip to content

Commit

Permalink
Fix release publishing workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
alexreinking committed Dec 17, 2024
1 parent 5f17d6f commit bf23dff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
push:
branches: [ main, build/pip-packaging ]
release:
types: [ created ]
types: [ published ]

env:
# TODO: detect this from repo somehow: https://github.com/halide/Halide/issues/8406
Expand Down Expand Up @@ -253,7 +253,7 @@ jobs:
- uses: pypa/gh-action-pypi-publish@release/v1
if: github.event_name == 'push' && github.ref_name == 'main'
with:
repository_url: https://test.pypi.org/legacy/
repository-url: https://test.pypi.org/legacy/

- uses: pypa/gh-action-pypi-publish@release/v1
if: github.event_name == 'release' && github.event.action == 'published'

0 comments on commit bf23dff

Please sign in to comment.