-
Notifications
You must be signed in to change notification settings - Fork 1
33 lines (25 loc) · 812 Bytes
/
build.yml
File metadata and controls
33 lines (25 loc) · 812 Bytes
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
name: Refactored.Email - CI
on:
pull_request:
env:
SOLUTION: Refactored.Email.sln
OUTPUT_PATH: ${{ github.workspace }}\.output
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Fetch all history for all tags and branches
run: git fetch --prune --unshallow
- name: Setup MSBuild
uses: microsoft/setup-msbuild@v1.1
- name: Restore NuGet packages
run: msbuild ${{ env.SOLUTION }} -t:restore
- name: Build solution
run: msbuild ${{ env.SOLUTION }} -p:Configuration=Release -p:GeneratePackageOnBuild=true -p:PackageOutputPath=${{ env.OUTPUT_PATH }}
- name: Upload NuGet artifacts
uses: actions/upload-artifact@v1
with:
name: nuget
path: ${{ env.OUTPUT_PATH }}