Skip to content

Commit 53b9c77

Browse files
Add or update the Azure App Service build and deployment workflow config
1 parent cf80150 commit 53b9c77

1 file changed

Lines changed: 7 additions & 17 deletions

File tree

.github/workflows/main_trafficescape.yml

Lines changed: 7 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy
22
# More GitHub Actions for Azure: https://github.com/Azure/actions
33

4-
name: Build and deploy ASP.Net Core app to Azure Web App - TrafficEscape
4+
name: Build and deploy ASP.Net Core app to Azure Web App - trafficEscape
55

66
on:
77
push:
@@ -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
@@ -36,30 +38,18 @@ jobs:
3638
deploy:
3739
runs-on: ubuntu-latest
3840
needs: build
39-
environment:
40-
name: 'Production'
41-
url: ${{ steps.deploy-to-webapp.outputs.webapp-url }}
42-
permissions:
43-
id-token: write #This is required for requesting the JWT
44-
41+
4542
steps:
4643
- name: Download artifact from build job
4744
uses: actions/download-artifact@v4
4845
with:
4946
name: .net-app
50-
51-
- name: Login to Azure
52-
uses: azure/login@v2
53-
with:
54-
client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_F7EE445F629D4C2A83A3653683A5C29B }}
55-
tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_182D5E67B1D04793BE07291BFB337484 }}
56-
subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_FE0C5ECB0B3F458484D7F6903DE2A506 }}
57-
47+
5848
- name: Deploy to Azure Web App
5949
id: deploy-to-webapp
6050
uses: azure/webapps-deploy@v3
6151
with:
62-
app-name: 'TrafficEscape'
52+
app-name: 'trafficEscape'
6353
slot-name: 'Production'
6454
package: .
65-
55+
publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_F37A19349B694CECA499784ACF5BAE27 }}

0 commit comments

Comments
 (0)