forked from dotnetcore/BootstrapBlazor
-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (31 loc) · 896 Bytes
/
publish.yml
File metadata and controls
38 lines (31 loc) · 896 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Deploy To Pages
on:
push:
branches:
- publish
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.400
- 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.7.1
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