-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
63 lines (60 loc) · 1.84 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
60
61
62
63
trigger:
- master
- refs/tags/v*
stages:
- stage: Build
jobs:
- job: Build
pool:
vmImage: 'windows-latest'
variables:
cake.buildTarget: 'CI'
build.configuration: 'Release'
steps:
- task: cake-build.cake.cake-build-task.Cake@0
displayName: 'Run Cake Build'
name: 'RunCakeBuild'
inputs:
target: $(cake.buildTarget)
arguments: '--Configuration="$(build.configuration)"'
- stage: DeployDevOps
dependsOn: Build
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
jobs:
- job: DeployDevOps
pool:
vmImage: 'windows-latest'
steps:
- task: DownloadBuildArtifacts@0
inputs:
buildType: 'current'
downloadType: 'specific'
itemPattern: '**'
downloadPath: '$(System.ArtifactsDirectory)'
- task: NuGetCommand@2
inputs:
command: 'push'
packagesToPush: '$(System.ArtifactsDirectory)/artifacts/NuGet/*.nupkg;!$(System.ArtifactsDirectory)/artifacts/NuGet/*.symbols.nupkg'
nuGetFeedType: 'internal'
publishVstsFeed: '/69a340d0-19c9-4da4-a7c3-11a19fd323a6'
- stage: DeployNuGet
dependsOn: Build
condition: and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/'))
jobs:
- job: DeployNuGet
pool:
vmImage: 'windows-latest'
steps:
- task: DownloadBuildArtifacts@0
inputs:
buildType: 'current'
downloadType: 'specific'
itemPattern: '**'
downloadPath: '$(System.ArtifactsDirectory)'
- task: NuGetCommand@2
displayName: 'NuGet push'
inputs:
command: push
packagesToPush: '$(System.ArtifactsDirectory)/artifacts/NuGet/*.nupkg;!$(System.ArtifactsDirectory)/artifacts/NuGet/*.symbols.nupkg'
nuGetFeedType: external
publishFeedCredentials: 'NuGet (Storm.Umbraco*)'