Skip to content

Commit c96287b

Browse files
committed
Fix playground publish
1 parent acb2121 commit c96287b

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/playground.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,17 @@ jobs:
4545
- name: Publish Playground
4646
run: dotnet publish src/FlexRender.Playground -c Release -o publish
4747

48+
- name: Rewrite base href for GitHub Pages
49+
run: sed -i 's|<base href="/" />|<base href="/FlexRender/" />|' publish/wwwroot/index.html
50+
51+
- name: Add .nojekyll
52+
run: touch publish/wwwroot/.nojekyll
53+
4854
- name: Upload Pages artifact
4955
uses: actions/upload-pages-artifact@v3
5056
with:
5157
path: publish/wwwroot
58+
overwrite: true
5259

5360
- name: Deploy to GitHub Pages
5461
id: deployment

src/FlexRender.Playground/wwwroot/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
<head>
44
<meta charset="UTF-8">
55
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<base href="/" />
67
<title>FlexRender Playground</title>
78
<link rel="stylesheet" href="style.css">
89
<link rel="preload" id="webassembly" />

0 commit comments

Comments
 (0)