Skip to content

Commit c225e43

Browse files
authored
Update azure-webapps-dotnet-core.yml
1 parent 0d2be85 commit c225e43

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

.github/workflows/azure-webapps-dotnet-core.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
name: CI-CD-Azure-Web-APP
2121

2222
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
2424
AZURE_WEBAPP_PACKAGE_PATH: '.' # set this to the path to your web app project, defaults to the repository root
2525
DOTNET_VERSION: '7.0' # set this to the .NET Core version to use
2626

@@ -62,7 +62,7 @@ jobs:
6262
uses: actions/upload-artifact@v3
6363
with:
6464
name: .net-app
65-
path: ${{env.DOTNET_ROOT}}/myapp
65+
path: ${{env.DOTNET_ROOT}}/SampleNETApp
6666

6767
deploy:
6868
permissions:
@@ -78,11 +78,14 @@ jobs:
7878
uses: actions/download-artifact@v3
7979
with:
8080
name: .net-app
81-
81+
82+
- uses: azure/login@v1
83+
with:
84+
creds: ${{ secrets.AZURE_CREDENTIALS }}
85+
8286
- name: Deploy to Azure Web App
8387
id: deploy-to-webapp
84-
uses: azure/webapps-deploy@v2
88+
uses: azure/webapps-deploy@v3
8589
with:
8690
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

0 commit comments

Comments
 (0)