Skip to content

Commit

Permalink
Fix workflow for next release (#8514)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexreinking authored Dec 17, 2024
1 parent c6458ff commit 153e35d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/pip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ name: Build PyPI package

on:
push:
branches: [ main, build/pip-packaging ]
branches: [ main ]
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 153e35d

Please sign in to comment.