forked from dotnet-bluetooth-le/dotnet-bluetooth-le
-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (49 loc) · 1.34 KB
/
dotnet.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: ci/github-actions
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: nuget/setup-nuget@v1
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.x
- name: Clean
uses: cake-build/cake-action@v1
with:
script-path: .build/build.cake
target: Clean
- name: Restore
uses: cake-build/cake-action@v1
with:
script-path: .build/build.cake
target: Restore
- name: Build Libs
uses: cake-build/cake-action@v1
with:
script-path: .build/build.cake
target: BuildLibs
- name: Build Clients
uses: cake-build/cake-action@v1
with:
script-path: .build/build.cake
target: BuildClients
- name: Generate nuget package (Vanilla)
run: nuget pack .build/Plugin.BLE.nuspec -Version $(git describe)
- name: Generate nuget package (MvvmCross)
run: nuget pack .build/MvvmCross.Plugin.BLE.nuspec -Version $(git describe)
- name: Upload packages
uses: actions/upload-artifact@v2
with:
name: nupkg
path: ./*Plugin.BLE*.nupkg