From fe14330e71a0da80c02b3668204f894fe284761f Mon Sep 17 00:00:00 2001 From: Nicholas Tindle Date: Fri, 10 Nov 2023 12:29:08 -0600 Subject: [PATCH] ci: Updated release pipeline - Add release event trigger to CI/CD workflow - Changed condition for publish job to only run on release event with 'published' action --- .github/workflows/cicd.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index c25c6c9..6aab3ab 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -5,6 +5,8 @@ on: branches: [main] pull_request: branches: [main] + release: + types: [published] jobs: build: @@ -74,7 +76,7 @@ jobs: publish: needs: test - if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') + if: github.event_name == 'release' && github.event.action == 'published' runs-on: ubuntu-latest strategy: matrix: