Skip to content

Commit cad96b6

Browse files
committed
ci: Run wheel workflow on certain pushes (#4617)
We were only running the wheel workflow on pushes of TAGS, but this change also will run it when we push to release, and dev-3.* branches. My usual release workflow is to first push the "release" branch, watch for it to pass CI, then add the tag and push the tag and draft the release. If a problem with the wheel workflow isn't discovered until we've already pushed the tag, then a fix will require a new tag and new release (we never re-tag a release). So this change will allow us to catch any problems with the wheel worflow BEFORE we actually irrevocably make the tag, since it's no big deal to add corrections to the branch before tagging. It still won't upload the wheels until the tag itself is pushed. Signed-off-by: Larry Gritz <[email protected]>
1 parent 914dd13 commit cad96b6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/wheel.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,13 @@ permissions:
1313

1414
on:
1515
push:
16-
# Workflow run on tags for v3 only.
16+
# Workflow run on tags for v3 only, or pre-tagged pushes of release, or
17+
# dev-3.* branches.
1718
tags:
1819
- v3.*
20+
branches:
21+
- release
22+
- dev-3.*
1923
pull_request:
2024
# Workflow run on pull_request only when related files change.
2125
paths:

0 commit comments

Comments
 (0)