Skip to content

Commit 4baf285

Browse files
authored
Update main_webapp-bet-blocker.yml
Signed-off-by: Bruno Hashimoto <bgmuniz@live.com>
1 parent d2226e9 commit 4baf285

File tree

1 file changed

+11
-14
lines changed

1 file changed

+11
-14
lines changed

.github/workflows/main_webapp-bet-blocker.yml

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
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-
41
name: Build and deploy ASP.Net Core app to Azure Web App - webapp-bet-blocker
52

63
on:
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
@@ -62,4 +60,3 @@ jobs:
6260
app-name: 'webapp-bet-blocker'
6361
slot-name: 'Production'
6462
package: .
65-

0 commit comments

Comments
 (0)