File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed
Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ name: Deploy to GitHub Pages
33on :
44 push :
55 branches : [main]
6+ workflow_dispatch :
67
78permissions :
89 contents : read
@@ -27,14 +28,19 @@ jobs:
2728 dotnet-version : ' 10.0.x'
2829
2930 - name : Restore dependencies
30- run : dotnet restore SocOps/SocOps.csproj
31+ run : dotnet restore .solutions/finished/ SocOps/SocOps.csproj
3132
32- - name : Build
33- run : dotnet publish SocOps/SocOps.csproj -c Release -o release --nologo
33+ - name : Build finished solution
34+ run : dotnet publish .solutions/finished/ SocOps/SocOps.csproj -c Release -o release --nologo
3435
35- - name : Change base-tag in index.html
36+ - name : Configure for GitHub Pages
3637 run : |
38+ # Update base href for subdirectory hosting
3739 sed -i 's/<base href="\/" \/>/<base href="\/${{ github.event.repository.name }}\/" \/>/g' release/wwwroot/index.html
40+ # Copy index.html to 404.html for SPA routing
41+ cp release/wwwroot/index.html release/wwwroot/404.html
42+ # Prevent Jekyll processing
43+ touch release/wwwroot/.nojekyll
3844
3945 - uses : actions/configure-pages@v4
4046
You can’t perform that action at this time.
0 commit comments