Skip to content

Commit 7fd60c2

Browse files
committed
chor(ci): auto deploy to nightly on dev merge
1 parent 7b965d7 commit 7fd60c2

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

.github/workflows/automatic-deployment.yml

+10-5
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,21 @@ on:
44
pull_request:
55
branches:
66
- main
7+
- dev
78
types:
89
- closed
9-
pull_request_target:
10-
branches:
11-
- dev
1210

1311
jobs:
14-
deploy:
15-
if: github.event.pull_request.merged == true
12+
deploy-prod:
13+
if: github.event.pull_request.merged == true && github.event.pull_request.base.ref == "main"
1614
uses: ./.github/workflows/deployment-qmod.yml
1715
with:
1816
deploy-mode: production
1917
secrets: inherit
18+
19+
deploy-dev:
20+
if: github.event.pull_request.merged == true && github.event.pull_request.base.ref == "dev"
21+
uses: ./.github/workflows/deployment-qmod.yml
22+
with:
23+
deploy-mode: staging
24+
secrets: inherit

0 commit comments

Comments
 (0)