Skip to content

Commit 92b0924

Browse files
Update deploy workflow to build finished solution with cyberpunk theme
- Build .solutions/finished instead of basic SocOps - Add 404.html for SPA routing support - Add .nojekyll to prevent Jekyll processing - Add workflow_dispatch for manual triggers
1 parent a425c60 commit 92b0924

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

.github/workflows/deploy.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name: Deploy to GitHub Pages
33
on:
44
push:
55
branches: [main]
6+
workflow_dispatch:
67

78
permissions:
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

0 commit comments

Comments
 (0)