1
1
# Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy
2
2
# More GitHub Actions for Azure: https://github.com/Azure/actions
3
3
4
- name : Build and deploy Node.js app to Azure Web App - api-dileepadev
4
+ name : Build and Deploy to Azure Web App
5
5
6
6
on :
7
7
push :
@@ -23,11 +23,10 @@ jobs:
23
23
with :
24
24
node-version : ' 20.x'
25
25
26
- - name : npm install, build, and test
26
+ - name : npm install and build
27
27
run : |
28
28
npm install
29
29
npm run build --if-present
30
- npm run test --if-present
31
30
32
31
- name : Zip artifact for deployment
33
32
run : zip release.zip ./* -r
@@ -41,12 +40,12 @@ jobs:
41
40
deploy :
42
41
runs-on : ubuntu-latest
43
42
needs : build
44
- environment :
45
- name : ' Production'
46
- url : ${{ steps.deploy-to-webapp.outputs.webapp-url }}
47
- permissions :
48
- id-token : write # This is required for requesting the JWT
49
- contents : read # This is required for actions/checkout
43
+ environment :
44
+ name : ' Production'
45
+ url : ' https://api.dileepa.dev '
46
+ permissions :
47
+ id-token : write # This is required for requesting the JWT
48
+ contents : read # This is required for actions/checkout
50
49
51
50
steps :
52
51
- name : Download artifact from build job
@@ -56,13 +55,13 @@ jobs:
56
55
57
56
- name : Unzip artifact for deployment
58
57
run : unzip release.zip
59
-
60
- - name : Login to Azure
61
- uses : azure/login@v2
62
- with :
63
- client-id : ${{ secrets.AZUREAPPSERVICE_CLIENTID_0B93258A67174154B69E790355306C5D }}
64
- tenant-id : ${{ secrets.AZUREAPPSERVICE_TENANTID_BB2F46B580B7430D9E12584BCE7946E7 }}
65
- subscription-id : ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_44F4886C39724C4DB8FB985E5EC66F8B }}
58
+
59
+ - name : Login to Azure
60
+ uses : azure/login@v2
61
+ with :
62
+ client-id : ${{ secrets.AZUREAPPSERVICE_CLIENTID_0B93258A67174154B69E790355306C5D }}
63
+ tenant-id : ${{ secrets.AZUREAPPSERVICE_TENANTID_BB2F46B580B7430D9E12584BCE7946E7 }}
64
+ subscription-id : ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_44F4886C39724C4DB8FB985E5EC66F8B }}
66
65
67
66
- name : ' Deploy to Azure Web App'
68
67
id : deploy-to-webapp
71
70
app-name : ' api-dileepadev'
72
71
slot-name : ' Production'
73
72
package : .
74
-
0 commit comments