Skip to content

Commit 95540dd

Browse files
Merge pull request #228067 from RyanHill-MSFT/issues/105528-script-update
(Azure CXP) update script sample
2 parents 0f9c8c7 + 9ed64fe commit 95540dd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

articles/app-service/deploy-github-actions.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ The environment variable `AZURE_WEBAPP_PACKAGE_PATH` sets the path to your web a
289289
run: |
290290
dotnet restore
291291
dotnet build --configuration Release
292-
dotnet publish -c Release -o '${{ env.AZURE_WEBAPP_PACKAGE_PATH }}/myapp'
292+
dotnet publish -c Release --property:PublishDir='${{ env.AZURE_WEBAPP_PACKAGE_PATH }}/myapp'
293293
```
294294
**ASP.NET**
295295

@@ -383,7 +383,7 @@ jobs:
383383
run: |
384384
dotnet restore
385385
dotnet build --configuration Release
386-
dotnet publish -c Release -o '${{ env.AZURE_WEBAPP_PACKAGE_PATH }}/myapp'
386+
dotnet publish -c Release --property:PublishDir='${{ env.AZURE_WEBAPP_PACKAGE_PATH }}/myapp'
387387
388388
# Deploy to Azure Web apps
389389
- name: 'Run Azure webapp deploy action using publish profile credentials'
@@ -598,7 +598,7 @@ jobs:
598598
run: |
599599
dotnet restore
600600
dotnet build --configuration Release
601-
dotnet publish -c Release -o '${{ env.AZURE_WEBAPP_PACKAGE_PATH }}/myapp'
601+
dotnet publish -c Release --property:PublishDir='${{ env.AZURE_WEBAPP_PACKAGE_PATH }}/myapp'
602602
603603
# Deploy to Azure Web apps
604604
- name: 'Run Azure webapp deploy action using publish profile credentials'
@@ -841,7 +841,7 @@ jobs:
841841
run: |
842842
dotnet restore
843843
dotnet build --configuration Release
844-
dotnet publish -c Release -o '${{ env.AZURE_WEBAPP_PACKAGE_PATH }}/myapp'
844+
dotnet publish -c Release --property:PublishDir='${{ env.AZURE_WEBAPP_PACKAGE_PATH }}/myapp'
845845
846846
# Deploy to Azure Web apps
847847
- name: 'Run Azure webapp deploy action using publish profile credentials'

0 commit comments

Comments
 (0)