-
Notifications
You must be signed in to change notification settings - Fork 141
32 lines (30 loc) · 914 Bytes
/
main.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
name: Build Managed
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
managed-build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0 # avoid shallow clone so nbgv can do its work.
- uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.100
- uses: nuget/setup-nuget@v1.0.5
- name: Restore
run: nuget restore src/BehaviorsSdk.sln
- uses: microsoft/setup-msbuild@v1.0.2
- name: Build
run: msbuild src/BehaviorsSdk.sln /p:Configuration=Release
- name: Pack Behaviors
if: success()
run: msbuild src/Microsoft.Xaml.Behaviors/Microsoft.Xaml.Behaviors.csproj /p:Configuration=Release -t:pack
- name: Upload NuGet Artifacts
if: success()
uses: actions/upload-artifact@v2
with:
path: src/Microsoft.Xaml.Behaviors/bin/Release/*.nupkg