Skip to content

Commit

Permalink
Add or update the Azure App Service build and deployment workflow config
Browse files Browse the repository at this point in the history
  • Loading branch information
brunohash committed Nov 10, 2024
1 parent 8a23686 commit 73a545c
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions .github/workflows/main_webapp-bet-blocker.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy
# More GitHub Actions for Azure: https://github.com/Azure/actions

name: Build and deploy ASP.Net Core app to Azure Web App - webapp-bet-blocker

on:
pull_request:
types: [closed]
push:
branches:
- main
workflow_dispatch:
Expand Down Expand Up @@ -37,21 +39,21 @@ jobs:
environment:
name: 'Production'
url: ${{ steps.deploy-to-webapp.outputs.webapp-url }}
permissions:
id-token: write #This is required for requesting the JWT
permissions:
id-token: write #This is required for requesting the JWT

steps:
- name: Download artifact from build job
uses: actions/download-artifact@v4
with:
name: .net-app

- name: Login to Azure
uses: azure/login@v2
with:
client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_B507C0A27FC24F18A4AEB5B161EE984E }}
tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_2DE9C62BB58146488C6273CE2A764EC3 }}
subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_7AE14C789B9F4D7E84E4F6F17FD9375D }}

- name: Login to Azure
uses: azure/login@v2
with:
client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_318BF777486943DEB193CFA5850DC3A8 }}
tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_10FFEC901D194B3F8C875252FA770E1D }}
subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_3116864A3F9243BBAD87DBADF6874F83 }}

- name: Deploy to Azure Web App
id: deploy-to-webapp
Expand All @@ -60,3 +62,4 @@ jobs:
app-name: 'webapp-bet-blocker'
slot-name: 'Production'
package: .

0 comments on commit 73a545c

Please sign in to comment.