Skip to content

Commit a0787c0

Browse files
authored
Update main.yml
1 parent 62f54bc commit a0787c0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ jobs:
2626
# changes the base-tag in index.html from '/' to 'BlazorGitHubPagesDemo' to match GitHub Pages repository subdirectory
2727
- name: Change base-tag in index.html from / to BlazorGitHubPagesDemo
2828
run: sed -i 's/<base href="\/" \/>/<base href="\/BlazorGitHubPagesDemo\/" \/>/g' release/wwwroot/index.html
29+
30+
# copy index.html to 404.html to serve the same file when a file is not found
31+
- name: copy index.html to 404.html
32+
run: release/wwwroot/index.html release/wwwroot/404.html
2933

3034
# add .nojekyll file to tell GitHub pages to not treat this as a Jekyll project. (Allow files and folders starting with an underscore)
3135
- name: Add .nojekyll file

0 commit comments

Comments
 (0)