Skip to content

Commit 08aee7a

Browse files
committed
ci: update workflow to trigger publish on tag push
- Add tag pattern to push trigger - Change publish job condition to run on version tags
1 parent 4d33bc1 commit 08aee7a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/ci.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name: CI/CD Pipeline
33
on:
44
push:
55
branches: [ master, develop ]
6+
tags: ['v*']
67
pull_request:
78
branches: [ master, develop ]
89
release:
@@ -73,7 +74,7 @@ jobs:
7374
publish:
7475
needs: [test, build]
7576
runs-on: ubuntu-latest
76-
if: github.event_name == 'release' && github.event.action == 'created'
77+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
7778

7879
steps:
7980
- uses: actions/checkout@v3

0 commit comments

Comments
 (0)