From d3e006be623b18cd7e0bb9f5028179c871ef106e Mon Sep 17 00:00:00 2001 From: Zach Haitin Date: Mon, 21 Oct 2024 15:22:58 +0300 Subject: [PATCH] chor(ci): auto deploy to nightly on dev merge --- .github/workflows/automatic-deployment.yml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/automatic-deployment.yml b/.github/workflows/automatic-deployment.yml index b43b729ba..6037caf04 100644 --- a/.github/workflows/automatic-deployment.yml +++ b/.github/workflows/automatic-deployment.yml @@ -4,16 +4,21 @@ on: pull_request: branches: - main + - dev types: - closed - pull_request_target: - branches: - - dev jobs: - deploy: - if: github.event.pull_request.merged == true + deploy-prod: + if: github.event.pull_request.merged == true && github.event.pull_request.base.ref == "main" uses: ./.github/workflows/deployment-qmod.yml with: deploy-mode: production secrets: inherit + + deploy-dev: + if: github.event.pull_request.merged == true && github.event.pull_request.base.ref == "dev" + uses: ./.github/workflows/deployment-qmod.yml + with: + deploy-mode: staging + secrets: inherit