-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (31 loc) · 978 Bytes
/
gh-pages.yml
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
name: github pages
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
# Checkout the code
- uses: actions/checkout@v4
# Install .NET SDK
- name: Setup .NET SDK
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Install .NET WebAssembly Tools
run: dotnet workload install wasm-tools
# Add the "Publish SPA for GitHub Pages" package
- name: Add the "Publish SPA for GitHub Pages" package
run: dotnet add SpreadSheetOnBlazor.csproj package PublishSPAforGitHubPages.Build
# Publish the site
- name: Publish
run: dotnet publish SpreadSheetOnBlazor.csproj -c Release -o publish -p GHPages=true
# Deploy the site
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: publish/wwwroot
force_orphan: true