Skip to content

Commit 94b67dc

Browse files
committed
Update SWA workflow for .NET 10 and config fixes
- Added `dotnet-version: '10.0.x'` to use .NET 10 SDK in the `Build And Deploy Blazor WASM App` job. - Uncommented and set `output_location` to `"wwwroot"` for the built app content directory. - Fixed casing of `uses` parameter in `Close Pull Request Job` for consistency.
1 parent 438ace9 commit 94b67dc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/azure-static-web-apps-calm-plant-04da70210.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ jobs:
3434
id: swa
3535
uses: azure/static-web-apps-deploy@v1
3636
with:
37+
dotnet-version: '10.0.x' # Specifies the use of .NET 10 SDK
3738
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_CALM_PLANT_04DA70210 }}
3839
repo_token: ${{ secrets.GITHUB_TOKEN }} # Used for Github integrations (i.e. PR comments)
3940
action: "upload"
@@ -42,7 +43,7 @@ jobs:
4243
#app_location: "Client" # App source code path
4344
app_location: "BlazorBootstrap.Demo.WebAssembly" # App source code path
4445
#api_location: "Api" # Api source code path - optional
45-
#output_location: "wwwroot" # Built app content directory - optional
46+
output_location: "wwwroot" # Built app content directory - optional
4647
app_build_command: 'dotnet publish --configuration Release --output build'
4748
###### End of Repository/Build Configurations ######
4849

@@ -53,7 +54,7 @@ jobs:
5354
steps:
5455
- name: Close Pull Request
5556
id: closepullrequest
56-
uses: Azure/static-web-apps-deploy@v1
57+
uses: azure/static-web-apps-deploy@v1
5758
with:
5859
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_CALM_PLANT_04DA70210 }}
5960
action: "close"

0 commit comments

Comments
 (0)