File tree Expand file tree Collapse file tree 1 file changed +10
-9
lines changed
Expand file tree Collapse file tree 1 file changed +10
-9
lines changed Original file line number Diff line number Diff line change 1- # Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy
2- # More GitHub Actions for Azure: https://github.com/Azure/actions
3-
41name : Build and deploy ASP.Net Core app to Azure Web App - mytasksapi
52
63on :
1310 build :
1411 runs-on : ubuntu-latest
1512 permissions :
16- contents : read # This is required for actions/checkout
13+ contents : read
1714
1815 steps :
1916 - uses : actions/checkout@v4
@@ -24,10 +21,14 @@ jobs:
2421 dotnet-version : ' 8.x'
2522
2623 - name : Build with dotnet
27- run : dotnet build --configuration Release
24+ run : |
25+ cd Api
26+ dotnet build --configuration Release
2827
2928 - name : dotnet publish
30- run : dotnet publish -c Release -o ${{env.DOTNET_ROOT}}/myapp
29+ run : |
30+ cd Api
31+ dotnet publish -c Release -o ${{env.DOTNET_ROOT}}/myapp
3132
3233 - name : Upload artifact for deployment job
3334 uses : actions/upload-artifact@v4
3839 deploy :
3940 runs-on : ubuntu-latest
4041 needs : build
41- environment :
42- name : ' Production'
42+ environment :
43+ name : ' Production'
4344 url : ${{ steps.deploy-to-webapp.outputs.webapp-url }}
4445
4546 steps :
5556 app-name : ' mytasksapi'
5657 slot-name : ' Production'
5758 package : .
58- publish-profile : ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_173327727B6B4615B356540D1F1EFE3A }}
59+ publish-profile : ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_173327727B6B4615B356540D1F1EFE3A }}
You can’t perform that action at this time.
0 commit comments