BootstrapBlazor3/.github/workflows/publish.yml
Argo Zhang 7218fb3319
test(TreeView): add unit test improve code coverage (#2858)
* chore: 更新自动化脚本

* refactor: 更新样式

* doc: 更新示例

* test: 增加单元测试

* chore: bump version 8.1.10-beta02
2024-01-27 18:13:23 +08:00

39 lines
901 B
YAML

name: Deploy to Github Pages
on:
push:
branches:
- publish
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET Core SDK
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Publish wasm
run: |
dotnet publish -c Release -o deploy src/Wasm/BootstrapBlazor.WebAssembly.ClientHost
- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@3
with:
GITHUB_TOKEN: ${{ secrets.GH_PUSH_TOKEN }}
BRANCH: gh-pages
FOLDER: deploy/wwwroot
CLEAN: true
- name: Deploy to Github.io
uses: peaceiris/actions-gh-pages@v3
with:
personal_token: ${{ secrets.GH_PUSH_TOKEN }}
external_repository: ArgoZhang/ArgoZhang.github.io
publish_branch: master
publish_dir: ./deploy/wwwroot