Skip to content

Commit 2d7354b

Browse files
committed
Fix upload only on published, NOT push
1 parent 92381ac commit 2d7354b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727

2828
publish-package:
2929
# Don't publish from forks
30-
if: github.repository_owner == 'pymc-devs' && github.event_name == 'push' && github.ref == 'refs/heads/main'
30+
if: github.repository_owner == 'pymc-devs' && github.event.action == 'published'
3131
# Use the `release` GitHub environment to protect the Trusted Publishing (OIDC)
3232
# workflow by requiring signoff from a maintainer.
3333
environment: release

0 commit comments

Comments
 (0)