-
-
Notifications
You must be signed in to change notification settings - Fork 1
54 lines (43 loc) · 1.16 KB
/
cd-w3-ws-dotnet.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
43
44
45
46
47
48
49
50
51
52
53
54
name: ci w3.ws dotnet
on:
pull_request:
branches: [main]
push:
branches: [main]
workflow_dispatch:
jobs:
build:
strategy:
matrix:
configuration: [Debug, Release]
runs-on: windows-latest
env:
Solution_Name: W3.WS.Cli.sln
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install .NET Core
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
- name: Setup MSBuild.exe
uses: microsoft/[email protected]
with:
msbuild-architecture: x64
- name: Restore the application
run: msbuild $env:Solution_Name /t:Restore /p:Configuration=$env:Configuration
env:
Configuration: ${{ matrix.configuration }}
- name: Build
run: msbuild $env:Solution_Name -p:Configuration=$env:Configuration -m -graph -isolate
env:
Configuration: ${{ matrix.configuration }}
- name: Publish
uses: actions/upload-artifact@v3
id: publish_app
with:
name: w3.ws.cli
path: |
src\W3.WS.Cli\bin\Release\net472