-
Notifications
You must be signed in to change notification settings - Fork 20
38 lines (34 loc) · 1019 Bytes
/
build-proj.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
name: Build DWAPI
on:
push:
branches: [ master ]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 2.1.805
- name: Install dependencies
run: dotnet restore Dwapi.sln
- name: Build
run: dotnet build src/Dwapi/Dwapi.csproj --configuration Release --no-restore
- name: Test
run: ls test/*/*.Tests.csproj | xargs -L 1 dotnet test
- name: Setup Angular
uses: actions/setup-node@v1
with:
node-version: '14.x'
- run: npm install --prefix src/Dwapi
- run: npm run build --prefix src/Dwapi
- name: Pub .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.201
- name: Publish
run: dotnet publish src/Dwapi/Dwapi.csproj --configuration Release -o dwapi
- name: Zip Folder
run: zip -r dwapi.zip dwapi