Skip to content

Commit 7dbccab

Browse files
committed
rewrite base path
1 parent 9b34f64 commit 7dbccab

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/build-and-test.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,10 @@ jobs:
6767

6868
- name: Build Web Demo
6969
run: dotnet publish -c Release -o demo "${{ env.DemoProject }}"
70+
71+
- name: Rewrite Base Path
72+
shell: pwsh
73+
run: ((Get-Content -path "demo\wwwroot\index.html" -Raw) -replace '<base href="/" />', '<base href="/OpenRpg/" />') | Set-Content -Path "demo\wwwroot\index.html"
7074

7175
- name: Upload Pages Artifact
7276
uses: actions/upload-pages-artifact@v3

0 commit comments

Comments
 (0)