From e8b5edc13dcb69faebfa47faec005b93ece21748 Mon Sep 17 00:00:00 2001 From: snowman2 Date: Thu, 4 Dec 2025 16:09:44 -0600 Subject: [PATCH] CI: Only build wheels under specific scenarios --- .github/workflows/build-wheels.yaml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build-wheels.yaml b/.github/workflows/build-wheels.yaml index 246e8d23..5f2d8623 100644 --- a/.github/workflows/build-wheels.yaml +++ b/.github/workflows/build-wheels.yaml @@ -8,12 +8,15 @@ on: description: 'Upload wheels to PyPI? (0: no, 1: yes)' required: true default: '0' - pull_request: - types: - - opened - - synchronize - - reopened - # push: + push: + branches: [ main, maint-1.4 ] + release: + types: [ released, prereleased ] + pull_request: # also build on PRs touching this file + branches: [ main, maint-1.4 ] + paths: + - ".github/workflows/build-wheels.yaml" + - "ci/config.sh" # cancel running jobs on new commit to PR concurrency: