File tree Expand file tree Collapse file tree 1 file changed +12
-16
lines changed
Expand file tree Collapse file tree 1 file changed +12
-16
lines changed Original file line number Diff line number Diff line change 1111
1212jobs :
1313 build :
14- runs-on : windows -latest
14+ runs-on : ubuntu -latest
1515 permissions :
1616 contents : read # This is required for actions/checkout
1717
@@ -28,41 +28,37 @@ jobs:
2828 npm install
2929 npm run build --if-present
3030 npm run test --if-present
31-
31+
32+ - name : Zip artifact for deployment
33+ run : zip release.zip ./* -r
34+
3235 - name : Upload artifact for deployment job
3336 uses : actions/upload-artifact@v4
3437 with :
3538 name : node-app
36- path : .
39+ path : release.zip
3740
3841 deploy :
3942 runs-on : ubuntu-latest
4043 needs : build
4144 environment :
4245 name : ' Production'
4346 url : ${{ steps.deploy-to-webapp.outputs.webapp-url }}
44- permissions :
45- id-token : write # This is required for requesting the JWT
46- contents : read # This is required for actions/checkout
47-
47+
4848 steps :
4949 - name : Download artifact from build job
5050 uses : actions/download-artifact@v4
5151 with :
5252 name : node-app
53-
54- - name : Login to Azure
55- uses : azure/login@v2
56- with :
57- client-id : ${{ secrets.AZUREAPPSERVICE_CLIENTID_E9E8EA909566456C8585F893FCDB2109 }}
58- tenant-id : ${{ secrets.AZUREAPPSERVICE_TENANTID_03F4C2792E374D09AB14723C882ECED3 }}
59- subscription-id : ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_079864987F13419CBC7255EC767F6239 }}
6053
54+ - name : Unzip artifact for deployment
55+ run : unzip release.zip
56+
6157 - name : ' Deploy to Azure Web App'
62- uses : azure/webapps-deploy@v3
6358 id : deploy-to-webapp
59+ uses : azure/webapps-deploy@v3
6460 with :
6561 app-name : ' server-implementations'
6662 slot-name : ' Production'
6763 package : .
68-
64+ publish-profile : ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_57F584B195AA4E4DAE08D580A876837C }}
You can’t perform that action at this time.
0 commit comments