ant-design-blazor/.github/workflows/gh-pages.yml
BenLampson(赵元源) e262b39808 fix(module:layout&menu) fix some bugs in layout and menu (#6)
* feat:
1.add the "longBodyMode" parameter to AntLayoutSider.
2.add the "longContentMode" parameter to antlaycontent
3.add the self-adaption mode to side bar.
fix:
1.fix doc project page layout.
2.set the default width value, cause if use forgot set this value, there throw the nullreference exception.
3.fix the user set 100% or xxxVH etc. the old style will add the px end of string.
style:
1.fix the menu margin, you will found that you lost one menu item which lastest in list.
2.add the footer to main layout
refactor:
1.Hide the adWidth

Co-authored-by: ElderJames <shunjiey@hotmail.com>
2020-03-09 22:32:06 +08:00

54 lines
1.7 KiB
YAML

name: Publish Docs
env:
Version: 0.0.1
NUGET_API_KEY: ${{secrets.NUGET_API_KEY}}
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.100
- uses: actions/setup-node@v1
with:
node-version: '10.x'
- name: Publish Docs to github pages
env:
GH_PUSH_TOKEN: ${{secrets.GH_PUSH_TOKEN}}
run: |
npm install
git config --global user.name 'ElderJames'
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
git commit -m "docs: Create build $GITHUB_RUN_ID"
git push -f https://ElderJames:$GH_PUSH_TOKEN@github.com/ElderJames/ant-design-blazor.git gh-pages
- 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
- name: Publish to Nuget
run: |
dotnet nuget push pack-${GITHUB_RUN_ID}/*.nupkg -s https://api.nuget.org/v3/index.json -k $NUGET_API_KEY