-
Notifications
You must be signed in to change notification settings - Fork 11
/
azure-pipelines.yml
58 lines (58 loc) · 1.5 KB
/
azure-pipelines.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
52
53
54
55
56
57
58
trigger:
batch: true
branches:
include:
- master
jobs:
- job: Linux
pool:
vmImage: "ubuntu-latest"
steps:
- template: azure-pipelines/steps/build.yml
parameters:
artifactName: "Linux"
platform: "Linux"
versionSuffix: "linux"
- job: Windows
pool:
vmImage: "windows-latest"
steps:
- template: azure-pipelines/steps/build.yml
parameters:
artifactName: "Windows"
platform: "Windows"
versionSuffix: "windows"
- job: macOS
pool:
vmImage: "macOS-latest"
steps:
- template: azure-pipelines/steps/build.yml
parameters:
artifactName: "macOS"
platform: "macOS"
versionSuffix: "macos"
- job: NuGet
pool:
vmImage: "ubuntu-16.04"
dependsOn:
- Linux
- Windows
- macOS
condition: and(succeeded(), eq(variables['build.sourceBranch'], 'refs/heads/master'))
steps:
- task: UseDotNet@2
displayName: "Use .NET Core SDK Tool Installer"
inputs:
packageType: "sdk"
version: "9.0.100"
- script: dotnet restore src
displayName: Restore packages
- script: |
mkdir artifacts
dotnet pack src/Netatmo/Netatmo.csproj -c Release -o "$(Build.SourcesDirectory)/artifacts"
displayName: Build
- task: PublishBuildArtifacts@1
displayName: Publish Artifacts
inputs:
pathToPublish: artifacts
artifactName: NuGet