Skip to content

Commit f01f9fd

Browse files
committed
Change github workflows to only run for tagged versions
1 parent cc39ea7 commit f01f9fd

File tree

3 files changed

+22
-1
lines changed

3 files changed

+22
-1
lines changed

.github/workflows/main.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,14 @@ name: 'CI'
22
on:
33
push:
44
tags:
5-
- 'v.*'
5+
- 'v*'
6+
branches:
7+
- main
8+
pull_request:
9+
branches:
10+
- main
11+
tags:
12+
- 'v*'
613

714
jobs:
815
release:

.github/workflows/python-publish.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,16 @@ name: Upload Python Package
66
on:
77
release:
88
types: [created]
9+
push:
10+
branches:
11+
- main
12+
tags:
13+
- 'v*'
14+
pull_request:
15+
branches:
16+
- main
17+
tags:
18+
- 'v*'
919

1020
jobs:
1121
deploy:

.github/workflows/python-test-publish.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,13 @@ on:
99
push:
1010
branches:
1111
- main
12+
tags:
13+
- 'v*'
1214
pull_request:
1315
branches:
1416
- main
17+
tags:
18+
- 'v*'
1519

1620
jobs:
1721
deploy:

0 commit comments

Comments
 (0)