1
1
# Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy
2
2
# More GitHub Actions for Azure: https://github.com/Azure/actions
3
3
4
- name : Build and deploy ASP.Net Core app to Azure Web App - dailyscrum
4
+ name : Build and Deploy Web App
5
5
6
6
on :
7
7
push :
23
23
24
24
- name : Build with dotnet
25
25
run : dotnet build --configuration Release
26
+ working-directory : src/WebUI
26
27
27
28
- name : dotnet publish
28
29
run : dotnet publish -c Release -o ${{env.DOTNET_ROOT}}/myapp
30
+ working-directory : src/WebUI
29
31
30
32
- name : Upload artifact for deployment job
31
33
uses : actions/upload-artifact@v4
@@ -39,21 +41,21 @@ jobs:
39
41
environment :
40
42
name : ' Production'
41
43
url : ${{ steps.deploy-to-webapp.outputs.webapp-url }}
42
- permissions :
43
- id-token : write # This is required for requesting the JWT
44
+ permissions :
45
+ id-token : write # This is required for requesting the JWT
44
46
45
47
steps :
46
48
- name : Download artifact from build job
47
49
uses : actions/download-artifact@v4
48
50
with :
49
51
name : .net-app
50
-
51
- - name : Login to Azure
52
- uses : azure/login@v2
53
- with :
54
- client-id : ${{ secrets.AZUREAPPSERVICE_CLIENTID_C07A98360218403593E4D6D83E7C5DDD }}
55
- tenant-id : ${{ secrets.AZUREAPPSERVICE_TENANTID_92F6A8C3E3F14619AAE84A1264978A7D }}
56
- subscription-id : ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_7459CBB7D3DB4EE6BAF9DC64FC9342AC }}
52
+
53
+ - name : Login to Azure
54
+ uses : azure/login@v2
55
+ with :
56
+ client-id : ${{ secrets.AZUREAPPSERVICE_CLIENTID_C07A98360218403593E4D6D83E7C5DDD }}
57
+ tenant-id : ${{ secrets.AZUREAPPSERVICE_TENANTID_92F6A8C3E3F14619AAE84A1264978A7D }}
58
+ subscription-id : ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_7459CBB7D3DB4EE6BAF9DC64FC9342AC }}
57
59
58
60
- name : Deploy to Azure Web App
59
61
id : deploy-to-webapp
62
64
app-name : ' dailyscrum'
63
65
slot-name : ' Production'
64
66
package : .
65
-
0 commit comments