mirror of
https://gitee.com/LongbowEnterprise/BootstrapBlazor.git
synced 2024-12-02 12:09:59 +08:00
7218fb3319
* chore: 更新自动化脚本 * refactor: 更新样式 * doc: 更新示例 * test: 增加单元测试 * chore: bump version 8.1.10-beta02
39 lines
901 B
YAML
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
|