-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (34 loc) · 1.05 KB
/
publish_to_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
38
39
40
41
42
43
name: Publish to Github Pages
on:
push:
branches:
- master
pull_request:
branches:
- master
permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.0.x
- name: Install .NET WASM Build Tools
run: dotnet workload install wasm-tools
- name: Build Node Resources
run: npm install && npm run build:tailwind:wasm
- name: Restore Packages
run: dotnet restore SupasharpTodo.BlazorWASM/SupasharpTodo.BlazorWASM.csproj
- name: Publish .NET Core Project
run: dotnet publish SupasharpTodo.BlazorWASM/SupasharpTodo.BlazorWASM.csproj -c release /p:APP_TASKS=prerender -o dist/web --no-restore
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@3.7.1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: dist/web/wwwroot
CLEAN: true