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
3-
43name : Build and deploy ASP.Net Core app to Azure Web App - resellio
5-
64on :
75 push :
86 branches :
97 - feat/CreateEventWithCategoriesAndTicketTyped
108 workflow_dispatch :
11-
129jobs :
1310 build :
1411 runs-on : windows-latest
1512 permissions :
1613 contents : read # This is required for actions/checkout
17-
1814 steps :
1915 - uses : actions/checkout@v4
20-
16+
2117 - name : Set up .NET Core
2218 uses : actions/setup-dotnet@v4
2319 with :
2420 dotnet-version : ' 6.0.x'
25-
21+
2622 - name : Build with dotnet
27- run : dotnet build --configuration Release
28-
23+ run : dotnet build TickAPI/TickAPI.sln --configuration Release
24+
2925 - name : dotnet publish
30- run : dotnet publish -c Release -o "${{env.DOTNET_ROOT}}/TickAPI/TickAPI.sln "
31-
26+ run : dotnet publish TickAPI/TickAPI.sln -c Release -o "${{env.DOTNET_ROOT}}/myapp "
27+
3228 - name : Upload artifact for deployment job
3329 uses : actions/upload-artifact@v4
3430 with :
3531 name : .net-app
36- path : ${{env.DOTNET_ROOT}}/TickAPI/TickAPI.sln
37-
32+ path : ${{env.DOTNET_ROOT}}/myapp
33+
3834 deploy :
3935 runs-on : windows-latest
4036 needs : build
4440 permissions :
4541 id-token : write # This is required for requesting the JWT
4642 contents : read # This is required for actions/checkout
47-
4843 steps :
4944 - name : Download artifact from build job
5045 uses : actions/download-artifact@v4
@@ -54,15 +49,14 @@ jobs:
5449 - name : Login to Azure
5550 uses : azure/login@v2
5651 with :
57- client-id : ${{ secrets.AZUREAPPSERVICE_CLIENTID_1E79017744574753935FA54217321744 }}
58- tenant-id : ${{ secrets.AZUREAPPSERVICE_TENANTID_45CB50561E614FBB9482DD79882CEA2A }}
59- subscription-id : ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_036603283F034371B4B2C33640B40CEB }}
60-
52+ client-id : ${{ secrets.AZUREAPPSERVICE_CLIENTID_0D0336DEAF734574B53DD4A5D2E898A0 }}
53+ tenant-id : ${{ secrets.AZUREAPPSERVICE_TENANTID_800D316A4C714278AB484F215A6303F0 }}
54+ subscription-id : ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_E2CF62C6C3CB48B0AFF01965324F5D3A }}
55+
6156 - name : Deploy to Azure Web App
6257 id : deploy-to-webapp
6358 uses : azure/webapps-deploy@v3
6459 with :
6560 app-name : ' resellio'
6661 slot-name : ' Production'
6762 package : .
68-
0 commit comments