Skip to content

Commit 151e5d8

Browse files
committed
ci: trigger wheel build on version tags
1 parent b386348 commit 151e5d8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/build_release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ on:
66
push:
77
branches:
88
- main
9+
tags:
10+
- 'v[0-9]+.[0-9]+.[0-9]+'
911

1012
jobs:
1113
build_wheels_linux:
@@ -71,7 +73,7 @@ jobs:
7173
environment: pypi
7274
permissions:
7375
id-token: write
74-
if: github.event_name == 'release' && github.event.action == 'published'
76+
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')
7577
steps:
7678
- uses: actions/download-artifact@v3
7779
with:

0 commit comments

Comments
 (0)