File tree Expand file tree Collapse file tree 1 file changed +7
-9
lines changed
Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -21,18 +21,16 @@ jobs:
2121
2222 - name : Fix for GitHub Pages
2323 run : |
24- # 1. Base Href patchen (wirklich alles zwischen den Anführungszeichen ersetzen)
25- # Ersetze Blazor.SimpleGrid durch den EXAKTEN Namen deines Repos (Groß/Kleinschreibung!)
26- sed -i 's|<base href="[^"]*" />|<base href="/Blazor.SimpleGrid/" />|g' output/wwwroot/index.html
27-
28- # 2. Integrität deaktivieren (wegen der 404/Hash-Probleme auf GH Pages)
29- # Wir suchen alle JSON-Dateien im _framework Ordner (auch die mit Fingerprints)
24+ # Wir suchen die Zeile, die 'base href' enthält, und ersetzen sie komplett
25+ # Egal wie sie vorher aussah (mit/ohne Leerzeichen, Fingerprints etc.)
26+ sed -i '/<base href=/c\ <base href="/Blazor.SimpleGrid/" />' output/wwwroot/index.html
27+
28+ # Integrität deaktivieren (wie gehabt)
3029 find output/wwwroot/_framework -name "*.json" -exec sed -i 's/"sha256-[^"]*"/"sha256-ignore"/g' {} +
31-
32- # 3. 404 fix (für Routing)
30+
31+ # 404 fix
3332 cp output/wwwroot/index.html output/wwwroot/404.html
3433
35-
3634 - name : Upload to GitHub Pages
3735 uses : JamesIves/github-pages-deploy-action@v4
3836 with :
You can’t perform that action at this time.
0 commit comments