BootstrapBlazor3/.github/workflows/publish.yml
Argo Zhang 5ff15521c5
refactor(Select): revert CurrentValueAsString assign (#2039)
* refactor: use Find instead of FirstOrDefault

* revert: 撤销代码更改

* refactor: 属性更改为方法

* refactor: 拆解三元运算符提高可读性

* refactor: 拆分三元表达式提高可读性

* chore: 增加语法检查字典配置

* chore: bump version 7.10.2

* chore: 更新 actions 依赖项

* chore: 使用大版本号
2023-09-01 01:41:59 +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@v3
- name: Setup .NET Core SDK
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.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