-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (41 loc) · 1.22 KB
/
build.yaml
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
name: Build webassembly
on:
workflow_call:
env:
dotNetVersion: 8.0.x
dotNetConfiguration: Release
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: 'true'
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: ${{ env.dotNetVersion }}
- name: Setup node
uses: actions/setup-node@v2
with:
node-version: '21'
- name: Install workloads
run: dotnet workload restore
- name: npm install
working-directory: Library
run: npm install
- name: Install dependencies
working-directory: WebAssembly
run: dotnet restore
- name: .NET build
working-directory: WebAssembly
run: dotnet build -c ${{ env.dotNetConfiguration }}
- name: .NET publish
working-directory: WebAssembly
run: dotnet publish -c ${{ env.dotNetConfiguration }}
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: build
path: WebAssembly/bin/Release/net8.0/publish/wwwroot
retention-days: 1