Skip to content

Commit 4a0cd65

Browse files
committed
Add or update the Azure App Service build and deployment workflow config
1 parent fa097e7 commit 4a0cd65

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

.github/workflows/dev_projectdev2114.yml

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ on:
1212
jobs:
1313
build:
1414
runs-on: ubuntu-latest
15+
permissions:
16+
contents: read #This is required for actions/checkout
1517

1618
steps:
1719
- uses: actions/checkout@v4
@@ -31,39 +33,40 @@ jobs:
3133
run: zip release.zip ./* -r
3234

3335
- name: Upload artifact for deployment job
34-
uses: actions/upload-artifact@v3
36+
uses: actions/upload-artifact@v4
3537
with:
3638
name: node-app
3739
path: release.zip
3840

3941
deploy:
4042
runs-on: ubuntu-latest
4143
needs: build
42-
environment:
43-
name: 'Production'
44+
environment:
45+
name: 'Production'
4446
url: ${{ steps.deploy-to-webapp.outputs.webapp-url }}
4547
permissions:
4648
id-token: write #This is required for requesting the JWT
49+
contents: read #This is required for actions/checkout
4750

4851
steps:
4952
- name: Download artifact from build job
50-
uses: actions/download-artifact@v3
53+
uses: actions/download-artifact@v4
5154
with:
5255
name: node-app
5356

5457
- name: Unzip artifact for deployment
5558
run: unzip release.zip
5659

5760
- name: Login to Azure
58-
uses: azure/login@v1
61+
uses: azure/login@v2
5962
with:
60-
client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_7CD6A456C1DD410B8F9C0EDDC754AA59 }}
61-
tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_B9205C4AE0F44FB584547025B74BC4BD }}
62-
subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_F120BC9C21324D228E2358172511276A }}
63+
client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_A88F1095B41E4AD9BB6DBB8E103B12AA }}
64+
tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_56439CA138D74D8190E04E36FD5FA013 }}
65+
subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_5FE46AB3E9BB4DBB84A0635CEE0498E1 }}
6366

6467
- name: 'Deploy to Azure Web App'
6568
id: deploy-to-webapp
66-
uses: azure/webapps-deploy@v2
69+
uses: azure/webapps-deploy@v3
6770
with:
6871
app-name: 'projectdev2114'
6972
slot-name: 'Production'

0 commit comments

Comments
 (0)