File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change 20
20
name : CI-CD-Azure-Web-APP
21
21
22
22
env :
23
- AZURE_WEBAPP_NAME : your-app-name # set this to the name of your Azure Web App
23
+ AZURE_WEBAPP_NAME : ' SampleNETApp ' # set this to the name of your Azure Web App
24
24
AZURE_WEBAPP_PACKAGE_PATH : ' .' # set this to the path to your web app project, defaults to the repository root
25
25
DOTNET_VERSION : ' 7.0' # set this to the .NET Core version to use
26
26
62
62
uses : actions/upload-artifact@v3
63
63
with :
64
64
name : .net-app
65
- path : ${{env.DOTNET_ROOT}}/myapp
65
+ path : ${{env.DOTNET_ROOT}}/SampleNETApp
66
66
67
67
deploy :
68
68
permissions :
@@ -78,11 +78,14 @@ jobs:
78
78
uses : actions/download-artifact@v3
79
79
with :
80
80
name : .net-app
81
-
81
+
82
+ - uses : azure/login@v1
83
+ with :
84
+ creds : ${{ secrets.AZURE_CREDENTIALS }}
85
+
82
86
- name : Deploy to Azure Web App
83
87
id : deploy-to-webapp
84
- uses : azure/webapps-deploy@v2
88
+ uses : azure/webapps-deploy@v3
85
89
with :
86
90
app-name : ${{ env.AZURE_WEBAPP_NAME }}
87
- publish-profile : ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }}
88
- package : ${{ env.AZURE_WEBAPP_PACKAGE_PATH }}
91
+ package : ${{ env.AZURE_WEBAPP_PACKAGE_PATH }}/SampleNETApp
You can’t perform that action at this time.
0 commit comments