Skip to content

Commit d16e660

Browse files
committed
actions: fix workflow triggers
1 parent 1b6d6cd commit d16e660

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.github/workflows/pypi-publish.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,11 @@
99
name: Upload Python Package
1010

1111
on:
12-
release:
13-
types: [published]
12+
push:
13+
tags:
14+
- 'v[0-9]+.[0-9]+.[0-9]+'
15+
branches:
16+
- main
1417

1518
permissions:
1619
contents: read

.github/workflows/release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ on:
44
push:
55
tags:
66
- 'v[0-9]+.[0-9]+.[0-9]+'
7+
branches:
8+
- main
79

810
jobs:
911
release:

0 commit comments

Comments
 (0)