From 08aee7aa6cc061201b9c0921bf1cf25b3066d94b Mon Sep 17 00:00:00 2001 From: Tuan Date: Sun, 12 Jan 2025 12:33:14 +0700 Subject: [PATCH] ci: update workflow to trigger publish on tag push - Add tag pattern to push trigger - Change publish job condition to run on version tags --- .github/workflows/ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5818e75..3ea062e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,6 +3,7 @@ name: CI/CD Pipeline on: push: branches: [ master, develop ] + tags: ['v*'] pull_request: branches: [ master, develop ] release: @@ -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