Skip to content

Commit 46330c8

Browse files
fix: only run publish job on version tags, not every push to master
1 parent 62cf687 commit 46330c8

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name: CI
33
on:
44
push:
55
branches: [master]
6+
tags: ["v*"]
67
pull_request:
78
branches: [master]
89

@@ -34,7 +35,7 @@ jobs:
3435

3536
publish:
3637
needs: test
37-
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
38+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
3839
runs-on: ubuntu-latest
3940
permissions:
4041
id-token: write

0 commit comments

Comments
 (0)