Skip to content

Commit

Permalink
chor(ci): auto deploy to nightly on dev merge
Browse files Browse the repository at this point in the history
  • Loading branch information
zach-classiq committed Oct 21, 2024
1 parent 7b965d7 commit 7fd60c2
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/automatic-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 7fd60c2

Please sign in to comment.