File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ name: Build and deploy ASP.Net Core app to an Azure Web App
2121
2222env :
2323 AZURE_WEBAPP_NAME : whateverbruh # set this to the name of your Azure Web App
24- AZURE_WEBAPP_PACKAGE_PATH : ' .' # set this to the path to your web app project, defaults to the repository root
24+ AZURE_WEBAPP_PACKAGE_PATH : ' ./whateverAPI ' # set this to the path to your web app project
2525 DOTNET_VERSION : ' 9' # set this to the .NET Core version to use
2626
2727on :
5454
5555 - name : Build with dotnet
5656 run : dotnet build --configuration Release
57+ working-directory : ./whateverAPI
5758
5859 - name : dotnet publish
5960 run : dotnet publish -c Release -o ${{env.DOTNET_ROOT}}/myapp
61+ working-directory : ./whateverAPI
6062
6163 - name : Upload artifact for deployment job
6264 uses : actions/upload-artifact@v4
8082 name : .net-app
8183 path : .
8284
83- - name : Set Node.js version for deployment
84- uses : azure/appservice-settings@v1
85- with :
86- app-name : ${{ env.AZURE_WEBAPP_NAME }}
85+
8786
8887 - name : Deploy to Azure Web App
8988 id : deploy-to-webapp
You can’t perform that action at this time.
0 commit comments