-
Notifications
You must be signed in to change notification settings - Fork 92
42 lines (31 loc) · 958 Bytes
/
dotnet-windows.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
name: .NET build
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: windows-latest
env:
Solution_Name: RazorEngineCore.sln
Test_Project_Path: RazorEngineCore.Tests
Pack_Project_Path: RazorEngineCore
Configuration: Release
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Build
run: dotnet build $env:Solution_Name --configuration=$env:Configuration
- name: Execute unit tests
run: dotnet test $env:Test_Project_Path --configuration=$env:Configuration --no-build
- name: Pack
run: dotnet pack $env:Pack_Project_Path --configuration=$env:Configuration --no-build -o artifacts -p:symbolPackageFormat=snupkg --include-symbols
- name: Store nupkg
uses: actions/upload-artifact@v2
with:
name: Nuget packages
path: |
artifacts