Skip to content

Commit 735cd9f

Browse files
committed
Fix path on publish
1 parent 07e5f6e commit 735cd9f

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

.github/workflows/main_dailyscrum.yml

Lines changed: 12 additions & 11 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 - dailyscrum
4+
name: Build and Deploy Web App
55

66
on:
77
push:
@@ -23,9 +23,11 @@ jobs:
2323

2424
- name: Build with dotnet
2525
run: dotnet build --configuration Release
26+
working-directory: src/WebUI
2627

2728
- name: dotnet publish
2829
run: dotnet publish -c Release -o ${{env.DOTNET_ROOT}}/myapp
30+
working-directory: src/WebUI
2931

3032
- name: Upload artifact for deployment job
3133
uses: actions/upload-artifact@v4
@@ -39,21 +41,21 @@ jobs:
3941
environment:
4042
name: 'Production'
4143
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
4446

4547
steps:
4648
- name: Download artifact from build job
4749
uses: actions/download-artifact@v4
4850
with:
4951
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 }}
5759

5860
- name: Deploy to Azure Web App
5961
id: deploy-to-webapp
@@ -62,4 +64,3 @@ jobs:
6264
app-name: 'dailyscrum'
6365
slot-name: 'Production'
6466
package: .
65-

0 commit comments

Comments
 (0)