File tree Expand file tree Collapse file tree 1 file changed +11
-14
lines changed Expand file tree Collapse file tree 1 file changed +11
-14
lines changed Original file line number Diff line number Diff line change 1- # Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy
2- # More GitHub Actions for Azure: https://github.com/Azure/actions
3-
41name : Build and deploy ASP.Net Core app to Azure Web App - webapp-bet-blocker
52
63on :
7- push :
4+ pull_request :
5+ types : [closed]
86 branches :
97 - main
108 workflow_dispatch :
@@ -39,21 +37,21 @@ jobs:
3937 environment :
4038 name : ' Production'
4139 url : ${{ steps.deploy-to-webapp.outputs.webapp-url }}
42- permissions :
43- id-token : write # This is required for requesting the JWT
40+ permissions :
41+ id-token : write # This is required for requesting the JWT
4442
4543 steps :
4644 - name : Download artifact from build job
4745 uses : actions/download-artifact@v4
4846 with :
4947 name : .net-app
50-
51- - name : Login to Azure
52- uses : azure/login@v2
53- with :
54- client-id : ${{ secrets.AZUREAPPSERVICE_CLIENTID_B507C0A27FC24F18A4AEB5B161EE984E }}
55- tenant-id : ${{ secrets.AZUREAPPSERVICE_TENANTID_2DE9C62BB58146488C6273CE2A764EC3 }}
56- subscription-id : ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_7AE14C789B9F4D7E84E4F6F17FD9375D }}
48+
49+ - name : Login to Azure
50+ uses : azure/login@v2
51+ with :
52+ client-id : ${{ secrets.AZUREAPPSERVICE_CLIENTID_B507C0A27FC24F18A4AEB5B161EE984E }}
53+ tenant-id : ${{ secrets.AZUREAPPSERVICE_TENANTID_2DE9C62BB58146488C6273CE2A764EC3 }}
54+ subscription-id : ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_7AE14C789B9F4D7E84E4F6F17FD9375D }}
5755
5856 - name : Deploy to Azure Web App
5957 id : deploy-to-webapp
6260 app-name : ' webapp-bet-blocker'
6361 slot-name : ' Production'
6462 package : .
65-
You can’t perform that action at this time.
0 commit comments