forked from IdentityServer/IdentityServer4
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
59 lines (57 loc) · 1.59 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
59
trigger:
- main
- 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 MyGet'
inputs:
command: push
packagesToPush: 'nuget/*.nupkg'
nuGetFeedType: external
publishFeedCredentials: 'MyGet'
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/main'))
- task: NuGetCommand@2
displayName: 'Push to AzureArtifacts'
inputs:
command: 'push'
packagesToPush: 'nuget/*.nupkg'
nuGetFeedType: 'internal'
publishVstsFeed: 'e845e192-3505-4ec1-8b52-7e11e77d5e2a/e94fc75b-9e25-43e7-bfbc-f0af758115c1'
allowPackageConflicts: true
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/main'))
- 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/main'))