Skip to content

Commit ce08cdb

Browse files
committed
Update ci.yml
1 parent c4c4143 commit ce08cdb

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,13 @@ name: CI for AssemblyScript
22

33
on:
44
push:
5+
branches:
6+
- 'v*'
57
tags:
68
- 'v*'
9+
pull_request:
10+
branches:
11+
- 'v*'
712

813
jobs:
914
test:
@@ -35,6 +40,7 @@ jobs:
3540
publish:
3641
runs-on: ubuntu-latest
3742
needs: test
43+
if: startsWith(github.ref, 'refs/tags/v')
3844

3945
permissions:
4046
contents: write
@@ -98,6 +104,7 @@ jobs:
98104
release:
99105
runs-on: ubuntu-latest
100106
needs: publish
107+
if: startsWith(github.ref, 'refs/tags/v')
101108

102109
permissions:
103110
contents: write

0 commit comments

Comments
 (0)