From 9336ebf5e27258c86871dddb29843e08a11c1337 Mon Sep 17 00:00:00 2001 From: Larry Gritz Date: Sat, 1 Feb 2025 16:48:13 -0800 Subject: [PATCH] ci: Run wheel workflow on certain pushes 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 that 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 --- .github/workflows/wheel.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/wheel.yml b/.github/workflows/wheel.yml index 0d00ed8702..858f9fb6ee 100644 --- a/.github/workflows/wheel.yml +++ b/.github/workflows/wheel.yml @@ -13,9 +13,13 @@ permissions: on: push: - # Workflow run on tags for v3 only. + # Workflow run on tags for v3 only, or pre-tagged pushes of release, or + # dev-3.* branches. tags: - v3.* + branches: + - release + - dev-3.* pull_request: # Workflow run on pull_request only when related files change. paths: