Skip to content

Commit

Permalink
ci: update workflow to trigger publish on tag push
Browse files Browse the repository at this point in the history
- Add tag pattern to push trigger
- Change publish job condition to run on version tags
  • Loading branch information
avixiii-dev committed Jan 12, 2025
1 parent 4d33bc1 commit 08aee7a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: CI/CD Pipeline
on:
push:
branches: [ master, develop ]
tags: ['v*']
pull_request:
branches: [ master, develop ]
release:
Expand Down Expand Up @@ -73,7 +74,7 @@ jobs:
publish:
needs: [test, build]
runs-on: ubuntu-latest
if: github.event_name == 'release' && github.event.action == 'created'
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')

steps:
- uses: actions/checkout@v3
Expand Down

0 comments on commit 08aee7a

Please sign in to comment.