Skip to content

Commit d68fe40

Browse files
committed
refine conditions for publishing Python package in release workflow
1 parent faa7bf2 commit d68fe40

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,5 +66,9 @@ jobs:
6666
- 'README.md'
6767
6868
- name: Publish Python package
69-
if: steps.changes.outputs.publish == 'true' && github.event_name != 'pull_request' && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/'))
69+
if: >
70+
github.event_name != 'pull_request' && (
71+
startsWith(github.ref, 'refs/tags/') ||
72+
(github.ref == 'refs/heads/main' && steps.changes.outputs.publish == 'true')
73+
)
7074
run: uv publish

0 commit comments

Comments
 (0)