Skip to content

Updated config to fit the latest g2plot (#141) #47

Updated config to fit the latest g2plot (#141)

Updated config to fit the latest g2plot (#141) #47

Workflow file for this run

name: Publish Docs
env:
Version: 0.2.0
NUGET_API_KEY: ${{secrets.NUGET_API_KEY}}
on:
push:
branches:
- master
jobs:
publish-and-deploy:
runs-on: ubuntu-latest
if: github.repository_owner == 'ant-design-blazor'
steps:
- name: Checkout 🛎️
uses: actions/checkout@v2
with:
persist-credentials: false
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 8.0.x
- name: Publish Docs 🎉
run: |
cd ./src/AntDesign.Charts.Docs.WebAssembly/wwwroot
cp -rf gh-pages/* gh-pages/.nojekyll gh-pages/.spa ./
cd ../../../
dotnet build
dotnet publish -c Release -o cargo src/AntDesign.Charts.Docs.WebAssembly
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
ACCESS_TOKEN: ${{ secrets.GH_PUSH_TOKEN }}
BRANCH: gh-pages
FOLDER: cargo/wwwroot
- name: Package Nightly Nuget 📦
run: |
SUFFIX=`date "+%y%m%d%H%M%S"`
dotnet pack src/AntDesign.Charts/AntDesign.Charts.csproj /p:PackageVersion=$Version-nightly-${SUFFIX} -c Release -o publish
- name: Publish to Nuget ✔
run: |
dotnet nuget push publish/*.nupkg -s https://api.nuget.org/v3/index.json -k $NUGET_API_KEY --skip-duplicate