Skip to content

Commit afc0df7

Browse files
committed
Use tag as release trigger
1 parent 43fbab0 commit afc0df7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/wheels.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ name: Build wheels
33

44
on:
55
push:
6+
branches:
7+
- main
8+
tags:
9+
- v*
610
pull_request:
711
release:
812
types: [created]
@@ -53,7 +57,7 @@ jobs:
5357
permissions:
5458
id-token: write
5559
name: Deploy
56-
if: github.event_name == 'release' && github.event.action == 'created'
60+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
5761
steps:
5862
- uses: actions/checkout@v4
5963
- name: download artifacts

0 commit comments

Comments
 (0)