Skip to content

Commit 5bb120b

Browse files
committed
Improve dotnet publish and remove artifact upload
Updated the `dotnet publish` step to properly quote the output directory path, ensuring compatibility with paths containing spaces or special characters. Removed the artifact upload step (`actions/upload-artifact@v4`) to simplify the workflow.
1 parent 739bea4 commit 5bb120b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/web-app.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
run: dotnet build ./BlazorBootstrap.Demo.Server/BlazorBootstrap.Demo.Server.csproj --configuration Release
3030

3131
- name: Publish
32-
run: dotnet publish ./BlazorBootstrap.Demo.Server/BlazorBootstrap.Demo.Server.csproj -c Release -o ${{env.DOTNET_ROOT}}/myapp
32+
run: dotnet publish ./BlazorBootstrap.Demo.Server/BlazorBootstrap.Demo.Server.csproj -c Release -o "${{env.DOTNET_ROOT}}/myapp"
3333

3434
- name: Upload artifact for deployment job
3535
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)