Skip to content

Commit 3990cb1

Browse files
committed
Issue #33: Only build wheels on tagged releases and manual dispatch.
1 parent 582a743 commit 3990cb1

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
tags: ["v*"]
77
pull_request:
88
branches: [master, main]
9+
workflow_dispatch:
910

1011
concurrency:
1112
group: ${{ github.workflow }}-${{ github.ref }}
@@ -45,10 +46,12 @@ jobs:
4546

4647
# =========================================================================
4748
# Build wheels: Python 3.9-3.13 on all platforms
49+
# Only runs on tagged releases or manual dispatch.
4850
# 3.9 and 3.10 are optional (failures don't block the overall build)
4951
# =========================================================================
5052
build-wheels:
5153
name: Wheels ${{ matrix.python.version }} (${{ matrix.os }})${{ matrix.python.optional && ' [optional]' || '' }}
54+
if: startsWith(github.ref, 'refs/tags/v') || github.event_name == 'workflow_dispatch'
5255
needs: [test-cpp]
5356
runs-on: ${{ matrix.os }}
5457
continue-on-error: ${{ matrix.python.optional }}

0 commit comments

Comments
 (0)