1111 runs-on : ubuntu-latest
1212 name : Run Unit Tests
1313 steps :
14- - name : Set up Node for testing
14+ - name : Set up Node
1515 uses : actions/setup-node@v4
1616 with :
1717 node-version : 20.x
3030 group : ${{ github.event.repository.name }}-dev
3131 cancel-in-progress : false
3232 environment : " AWS DEV"
33- name : Deploy to AWS DEV
33+ name : Deploy to DEV
3434 needs :
3535 - test-unit
3636 steps :
@@ -53,10 +53,22 @@ jobs:
5353 aws-access-key-id : ${{ secrets.AWS_ACCESS_KEY_ID }}
5454 aws-secret-access-key : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
5555 aws-region : us-east-1
56- - run : make deploy_dev
56+ - name : Publish to AWS
57+ run : make deploy_dev
5758 env :
5859 HUSKY : " 0"
59- test :
60+ VITE_RUN_ENVIRONMENT : dev
61+ - name : Publish to Cloudflare
62+ uses : cloudflare/pages-action@v1
63+ with :
64+ apiToken : ${{ secrets.CLOUDFLARE_API_TOKEN }}
65+ accountId : ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
66+ projectName : management-ui-dev
67+ directory : dist_ui/
68+ gitHubToken : ${{ secrets.GITHUB_TOKEN }}
69+ branch : main
70+
71+ test-dev :
6072 runs-on : ubuntu-latest
6173 name : Run Live Integration Tests
6274 needs :
@@ -65,22 +77,23 @@ jobs:
6577 group : ${{ github.event.repository.name }}-dev
6678 cancel-in-progress : false
6779 steps :
68- - name : Set up Node for testing
80+ - name : Set up Node
6981 uses : actions/setup-node@v4
7082 with :
7183 node-version : 20.x
7284 - uses : actions/checkout@v4
7385 env :
74- HUSKY : " 0"
86+ HUSKY : " 0"
7587 - name : Set up Python 3.11 for testing
7688 uses : actions/setup-python@v5
7789 with :
7890 python-version : 3.11
7991 - name : Run live testing
8092 run : make test_live_integration
81- deploy-aws-prod :
93+
94+ deploy-prod :
8295 runs-on : ubuntu-latest
83- name : Deploy to AWS PROD
96+ name : Deploy to Prod
8497 concurrency :
8598 group : ${{ github.event.repository.name }}-prod
8699 cancel-in-progress : false
94107 node-version : 20.x
95108 - uses : actions/checkout@v4
96109 env :
97- HUSKY : " 0"
110+ HUSKY : " 0"
98111 - uses : aws-actions/setup-sam@v2
99112 with :
100113 use-installer : true
@@ -107,14 +120,26 @@ jobs:
107120 aws-access-key-id : ${{ secrets.AWS_ACCESS_KEY_ID }}
108121 aws-secret-access-key : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
109122 aws-region : us-east-1
110- - run : make deploy_prod
123+ - name : Publish to AWS
124+ run : make deploy_prod
111125 env :
112126 HUSKY : " 0"
127+ VITE_RUN_ENVIRONMENT : prod
128+ - name : Publish to Cloudflare
129+ uses : cloudflare/pages-action@v1
130+ with :
131+ apiToken : ${{ secrets.CLOUDFLARE_API_TOKEN }}
132+ accountId : ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
133+ projectName : management-ui-prod
134+ directory : dist_ui/
135+ gitHubToken : ${{ secrets.GITHUB_TOKEN }}
136+ branch : main
137+
113138 health-check-prod :
114139 runs-on : ubuntu-latest
115140 name : Confirm services healthy
116141 needs :
117- - deploy-aws- prod
142+ - deploy-prod
118143 concurrency :
119144 group : ${{ github.event.repository.name }}-prod
120145 cancel-in-progress : false
@@ -125,6 +150,6 @@ jobs:
125150 node-version : 20.x
126151 - uses : actions/checkout@v4
127152 env :
128- HUSKY : " 0"
153+ HUSKY : " 0"
129154 - name : Call the health check script
130155 run : make prod_health_check
0 commit comments