From 28d9f87485caf409386cfba6792eadf1b60d4feb Mon Sep 17 00:00:00 2001 From: Arnab Roy Chowdhury Date: Fri, 19 Mar 2021 13:00:24 +0530 Subject: [PATCH] update ci cd --- .github/workflows/ci-cd.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index aa09334..4427755 100644 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd.yml @@ -4,6 +4,8 @@ on: branches: [ main ] pull_request: branches: [ main ] + release: + types: [created] jobs: build: runs-on: ubuntu-latest @@ -42,7 +44,7 @@ jobs: publish-profile: ${{ secrets.DEV_PUBLISH_PROFILE }} package: 'publish/app' prd-deploy: - if: ${{ github.event_name == 'push' }} + if: ${{ github.event_name == 'release' }} runs-on: ubuntu-latest name: Deploy to prd needs: build