forked from IdentityServer/IdentityServer4
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
42 lines (40 loc) · 960 Bytes
/
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
trigger:
- master
- features/*
jobs:
- job: Linux
pool:
vmImage: 'ubuntu-16.04'
steps:
- task: UseDotNet@2
displayName: 'Install .NET Core SDK'
inputs:
packageType: 'sdk'
useGlobalJson: true
- task: Bash@3
displayName: 'Build Script'
inputs:
targetType: filePath
filePath: ./build.sh
- job: Windows
pool:
vmImage: 'vs2017-win2016'
steps:
- task: UseDotNet@2
displayName: 'Install .NET Core 3.x SDK'
inputs:
packageType: 'sdk'
useGlobalJson: true
- task: PowerShell@2
displayName: 'Build Script'
inputs:
targetType: filePath
filePath: ./build.ps1
- task: NuGetCommand@2
displayName: 'Push to GitHub packages'
inputs:
command: push
packagesToPush: 'nuget/*.nupkg'
nuGetFeedType: external
publishFeedCredentials: 'GitHub Packages'
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))