chore: move the gh-pages files

This commit is contained in:
James Yeung 2020-03-20 22:50:20 +08:00
parent 5718786042
commit 817691a24e
7 changed files with 7 additions and 14 deletions

View File

@ -28,22 +28,18 @@ jobs:
- name: Publish Docs 🎉
run: |
npm install
cd site/AntBlazor.Docs.ClientApp/wwwroot
rm index.html
cp -r gh-pages/* gh-pages/.nojekyll ./
rm -r gh-pages
cd ../../../
cp -rf scripts/gh-pages/* scripts/gh-pages/.nojekyll scripts/gh-pages/.spa ./site/AntBlazor.Docs.ClientApp/wwwroot
dotnet build
dotnet publish -c Release -o tmp
dotnet publish -c Release -o cargo
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
ACCESS_TOKEN: ${{ secrets.GH_PUSH_TOKEN }}
BRANCH: gh-pages
FOLDER: tmp/wwwroot
FOLDER: cargo/wwwroot
- name: Package Nightly Nuget
- name: Package Nightly Nuget 📦
run: |
dotnet pack components/AntBlazor.csproj /p:PackageVersion=$Version-nightly-$GITHUB_RUN_ID -c Release -o pack-$GITHUB_RUN_ID --no-build --no-restore

View File

@ -24,10 +24,5 @@ jobs:
- name: Check Building
run: |
npm install
cd site/AntBlazor.Docs.ClientApp/wwwroot
rm index.html
cp -r gh-pages/* gh-pages/.nojekyll ./
rm -r gh-pages
cd ../../../
dotnet build
dotnet publish -c Release -o tmp
dotnet publish -c Release

2
scripts/gh-pages/.spa Normal file
View File

@ -0,0 +1,2 @@
This file is used to enable gitee pages' spa mode.
https://gitee.com/help/articles/4237