Skip to content

Commit c7dab6a

Browse files
authored
Create main.yml
1 parent 6f987a8 commit c7dab6a

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/main.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: CI + CD
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
Staging:
8+
runs-on: ubuntu-latest
9+
environment: Staging
10+
steps:
11+
- uses: actions/checkout@v2
12+
- name: Run a script
13+
run: echo "Running in Staging"
14+
15+
Quality_Assurance:
16+
runs-on: ubuntu-latest
17+
environment: Quality_Assurance
18+
needs: Staging
19+
steps:
20+
- uses: actions/checkout@v2
21+
- name: Run a script
22+
run: echo "Running in QA"
23+
24+
Production:
25+
runs-on: ubuntu-latest
26+
environment: Development
27+
needs: Quality_Assurance
28+
steps:
29+
- uses: actions/checkout@v2
30+
- name: Run a script
31+
run: echo "Running in production"
32+
33+
Development:
34+
runs-on: ubuntu-latest
35+
environment: Production
36+
needs: Production
37+
steps:
38+
- uses: actions/checkout@v2
39+
- name: Run a script
40+
run: echo "Deployed"

0 commit comments

Comments
 (0)