diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b76e628..9f2ff68 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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 diff --git a/Platforms/ZXBox.Blazor/ZXBox.Blazor.csproj b/Platforms/ZXBox.Blazor/ZXBox.Blazor.csproj index 20ce2a8..c631638 100644 --- a/Platforms/ZXBox.Blazor/ZXBox.Blazor.csproj +++ b/Platforms/ZXBox.Blazor/ZXBox.Blazor.csproj @@ -30,6 +30,10 @@ PreserveNewest + + PreserveNewest + PreserveNewest + PreserveNewest diff --git a/Platforms/ZXBox.Blazor/wwwroot/CNAME b/Platforms/ZXBox.Blazor/wwwroot/CNAME new file mode 100644 index 0000000..cc122eb --- /dev/null +++ b/Platforms/ZXBox.Blazor/wwwroot/CNAME @@ -0,0 +1 @@ +zxbox.com