44 workflow_dispatch :
55 inputs :
66 tag :
7- description : ' Tag to publish (e.g. v3.3.1)'
8- required : true
7+ description : ' Tag or branch (e.g. v3.3.1 or development)'
8+ required : false
9+ default : ' development'
910
1011permissions :
1112 contents : write
1516 # ── Linux x86_64 manylinux (cp37-abi3) ──────────────────────────────────
1617 build-linux-x86_64-glibc :
1718 name : " linux x86_64 glibc"
18- runs-on : self-hosted
19+ runs-on : [ self-hosted, Linux, X64]
1920 steps :
2021 - uses : actions/checkout@v4
2122 with :
4243 # ── Linux aarch64 manylinux (cp37-abi3) ─────────────────────────────────
4344 build-linux-aarch64-glibc :
4445 name : " linux aarch64 glibc"
45- runs-on : self-hosted
46+ runs-on : [ self-hosted, Linux, X64]
4647 steps :
4748 - uses : actions/checkout@v4
4849 with :
6970 # ── Linux x86_64 musllinux (cp37-abi3) ──────────────────────────────────
7071 build-linux-x86_64-musl :
7172 name : " linux x86_64 musl"
72- runs-on : self-hosted
73+ runs-on : [ self-hosted, Linux, X64]
7374 steps :
7475 - uses : actions/checkout@v4
7576 with :
9697 # ── Linux aarch64 musllinux (cp37-abi3) ─────────────────────────────────
9798 build-linux-aarch64-musl :
9899 name : " linux aarch64 musl"
99- runs-on : self-hosted
100+ runs-on : [ self-hosted, Linux, X64]
100101 steps :
101102 - uses : actions/checkout@v4
102103 with :
@@ -123,7 +124,7 @@ jobs:
123124 # ── Windows AMD64 ────────────────────────────────────────────────────────
124125 build-win-amd64 :
125126 name : " windows amd64"
126- runs-on : self-hosted
127+ runs-on : [ self-hosted, Windows, X64]
127128 steps :
128129 - uses : actions/checkout@v4
129130 with :
@@ -144,7 +145,7 @@ jobs:
144145 # ── Windows ARM64 ────────────────────────────────────────────────────────
145146 build-win-arm64 :
146147 name : " windows arm64"
147- runs-on : self-hosted
148+ runs-on : [ self-hosted, Windows, X64]
148149 steps :
149150 - uses : actions/checkout@v4
150151 with :
@@ -242,13 +243,15 @@ jobs:
242243 run : ls -lh dist/
243244
244245 - name : Upload to GitHub Release
246+ if : startsWith(inputs.tag, 'v')
245247 uses : softprops/action-gh-release@v2
246248 with :
247249 tag_name : ${{ inputs.tag }}
248250 files : dist/*.whl
249251 fail_on_unmatched_files : false
250252
251253 - name : Publish to PyPI
254+ if : startsWith(inputs.tag, 'v')
252255 uses : pypa/gh-action-pypi-publish@release/v1
253256 with :
254257 packages-dir : dist/
0 commit comments