1 parent 5033353 commit 04bc1ebCopy full SHA for 04bc1eb
1 file changed
.github/workflows/deployment.yml
@@ -5,7 +5,7 @@ name: Deployment Workflow
5
6
on:
7
push:
8
- branches: [ "main" ]
+ branches: [ "main", "dev"]
9
10
pull_request:
11
branches: [ "main" ]
@@ -60,7 +60,8 @@ env:
60
jobs:
61
build-test:
62
runs-on: ubuntu-latest
63
-
+ environment: staging
64
+
65
steps:
66
- name: Get Code
67
uses: actions/checkout@v4
@@ -81,6 +82,7 @@ jobs:
81
82
build-publish:
83
needs: build-test
84
85
+ environment: production
86
outputs:
87
random-number: ${{ steps.publish.outputs.random-num }}
88
@@ -108,7 +110,7 @@ jobs:
108
110
deploy:
109
111
needs: build-publish
112
113
114
115
- name: Downloading build Artifacts
116
uses: actions/download-artifact@v4
0 commit comments