From 64890f94d80b8f1dcd65941a8cbe201bd5bcdf39 Mon Sep 17 00:00:00 2001 From: ElderJames Date: Wed, 4 Dec 2019 23:02:44 +0800 Subject: [PATCH] add assets for github pages --- .github/workflows/gh-pages.yml | 7 ++- AntBlazor.sln | 6 ++ .../wwwroot/gh-pages/.nojekyll | 0 .../wwwroot/gh-pages/404.html | 38 +++++++++++++ .../wwwroot/gh-pages/index.html | 55 +++++++++++++++++++ 5 files changed, 104 insertions(+), 2 deletions(-) create mode 100644 src/AntBlazor.Docs.ClientApp/wwwroot/gh-pages/.nojekyll create mode 100644 src/AntBlazor.Docs.ClientApp/wwwroot/gh-pages/404.html create mode 100644 src/AntBlazor.Docs.ClientApp/wwwroot/gh-pages/index.html diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 283dd59d..bbdab778 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -1,4 +1,4 @@ -name: publish gh-pages +name: Publish Docs on: push: @@ -20,7 +20,7 @@ jobs: uses: einaregilsson/build-number@v2 with: token: ${{secrets.github_token}} - - name: Publish App + - name: Publish Docs to github pages env: GH_PUSH_TOKEN: ${{secrets.GH_PUSH_TOKEN}} run: | @@ -28,6 +28,9 @@ jobs: git config --global user.email 'shunjiey@hotmail.com' dotnet publish -c Release -o tmp cd tmp/AntBlazor.Docs.ClientApp/dist + rm index.html + cp -r gh-pages/* gh-pages/.nojekyll ./ + rm -r gh-pages git init git checkout -b gh-pages git add -A diff --git a/AntBlazor.sln b/AntBlazor.sln index 76841726..de45e039 100644 --- a/AntBlazor.sln +++ b/AntBlazor.sln @@ -11,6 +11,12 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AntBlazor.Docs.ServerApp", EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AntBlazor.Docs.ClientApp", "src\AntBlazor.Docs.ClientApp\AntBlazor.Docs.ClientApp.csproj", "{1FD08A02-2249-44F6-B79E-B2E6836D551F}" EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{0CB79B3D-E483-4051-8026-6A80FCA0C6A6}" + ProjectSection(SolutionItems) = preProject + .github\workflows\gh-pages.yml = .github\workflows\gh-pages.yml + README.md = README.md + EndProjectSection +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU diff --git a/src/AntBlazor.Docs.ClientApp/wwwroot/gh-pages/.nojekyll b/src/AntBlazor.Docs.ClientApp/wwwroot/gh-pages/.nojekyll new file mode 100644 index 00000000..e69de29b diff --git a/src/AntBlazor.Docs.ClientApp/wwwroot/gh-pages/404.html b/src/AntBlazor.Docs.ClientApp/wwwroot/gh-pages/404.html new file mode 100644 index 00000000..b4bc0863 --- /dev/null +++ b/src/AntBlazor.Docs.ClientApp/wwwroot/gh-pages/404.html @@ -0,0 +1,38 @@ + + + + + Single Page Apps for GitHub Pages + + + + + \ No newline at end of file diff --git a/src/AntBlazor.Docs.ClientApp/wwwroot/gh-pages/index.html b/src/AntBlazor.Docs.ClientApp/wwwroot/gh-pages/index.html new file mode 100644 index 00000000..6bcf7653 --- /dev/null +++ b/src/AntBlazor.Docs.ClientApp/wwwroot/gh-pages/index.html @@ -0,0 +1,55 @@ + + + + + + + AntBlazor.Docs.ClientApp + + + + + + + Loading... + + + + + +
+ An unhandled error has occurred. + Reload + 🗙 +
+ + + \ No newline at end of file