-
-
Notifications
You must be signed in to change notification settings - Fork 107
51 lines (38 loc) · 1.3 KB
/
build.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
44
45
46
47
48
49
50
51
name: Articulate Build
on: [push, pull_request]
jobs:
build:
runs-on: windows-latest
env:
Solution_File: src\Articulate.sln
Code_CSProj_File: src\Articulate\Articulate.csproj
Web_Proj_Folder: src\Articulate.Web
Release_Folder: build\Release
Build_Folder: build
Configuration: Release
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: dotnet/nbgv@master
with:
setAllVars: true
- run: echo "NBGV_SemVer2 $NBGV_SemVer2"
- name: Add MSBuild to PATH
uses: microsoft/[email protected]
- uses: nuget/setup-nuget@v1
with:
nuget-version: 'latest'
- name: Nuget Restore
run: nuget restore $env:Solution_File
- name: MSBuild Clean
run: msbuild $env:Solution_File /p:Configuration=${{ env.Configuration }} /t:Clean
- name: MSBuild Build
run: msbuild $env:Solution_File /p:Configuration=${{ env.Configuration }}
- name: Dotnet Pack
run: dotnet pack ${{ env.Code_CSProj_File }} --output ${{ env.Release_Folder }} --configuration ${{ env.Configuration }}
- uses: actions/upload-artifact@v2
with:
name: Articulate.${{ env.NBGV_SemVer2 }}
path: ${{ env.Release_Folder }}/Articulate.*