Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,10 @@ jobs:
# Allow files and folders starting with an underscore.
- name: Add .nojekyll file
run: touch ${{ env.PUBLISH_DIR }}/.nojekyll


- name: Add CNAME file
run: Copy-Item 'Platforms\ZXBox.Blazor\wwwroot\CNAME' (Join-Path '${{ env.PUBLISH_DIR }}' 'CNAME')

# copy index.html to 404.html to serve the same file when a file is not found this makes deep linking possible
- name: copy index.html to 404.html
run: cp ${{ env.PUBLISH_DIR }}/index.html ${{ env.PUBLISH_DIR }}/404.html
Expand Down
4 changes: 4 additions & 0 deletions Platforms/ZXBox.Blazor/ZXBox.Blazor.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@
<Content Update="wwwroot\css\zx.ttf">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Update="wwwroot\CNAME">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
</Content>
<Content Update="wwwroot\images\48.png">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
Expand Down
1 change: 1 addition & 0 deletions Platforms/ZXBox.Blazor/wwwroot/CNAME
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
zxbox.com
Loading