generated from SwissLife-OSS/template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-release.yml
113 lines (99 loc) · 3.2 KB
/
azure-release.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
trigger:
- main
resources:
- repo: self
variables:
solution: "**/*.sln"
buildPlatform: "Any CPU"
buildConfiguration: "Release"
tag: "$(Build.BuildId)"
stages:
- stage: Release
displayName: Release
pool:
vmImage: "ubuntu-latest"
jobs:
- job: Build_Tool
dependsOn:
- Build_UI
- Build_AuthUI
displayName: Build Tool
steps:
- task: NuGetToolInstaller@1
- task: UseDotNet@2
inputs:
packageType: "sdk"
useGlobalJson: true
- task: DownloadPipelineArtifact@2
displayName: Download UI
inputs:
buildType: "current"
artifactName: "ui-tool"
targetPath: "src/Tool/src/Boost.Tool/UI"
- task: DownloadPipelineArtifact@2
displayName: Download Auth UI
inputs:
buildType: "current"
artifactName: "ui-auth"
targetPath: "src/Tool/src/Boost.Tool/AuthUI"
- task: DotNetCoreCLI@2
displayName: dotnet build
inputs:
command: "build"
projects: "**/*.sln"
arguments: "-c Release /p:Version=$(Build.SourceBranchName)"
- task: DotNetCoreCLI@2
displayName: nuget pack
inputs:
command: "pack"
packagesToPack: "**/*.sln"
configuration: "Release"
nobuild: true
packDirectory: "./nupkg"
includesymbols: true
versioningScheme: "byEnvVar"
versionEnvVar: "Build.SourceBranchName"
- task: PublishPipelineArtifact@1
displayName: publish nuget packages
inputs:
targetPath: "nupkg"
artifact: "packages"
publishLocation: "pipeline"
- task: NuGetCommand@2
inputs:
command: "push"
packagesToPush: "nupkg/*.nupkg;"
nuGetFeedType: "external"
publishFeedCredentials: "nuget.org"
- job: Build_UI
displayName: Build UI Tool
steps:
- task: Bash@3
inputs:
targetType: "inline"
script: "yarn --ignore-engines --cwd ./src/UI/boost-ui"
- task: Bash@3
inputs:
targetType: "inline"
script: "yarn --ignore-engines --cwd ./src/UI/boost-ui build"
- task: PublishPipelineArtifact@1
inputs:
targetPath: "src/Tool/src/Boost.Tool/UI"
artifact: "ui-tool"
publishLocation: "pipeline"
- job: Build_AuthUI
displayName: Build UI Auth
steps:
- task: Bash@3
inputs:
targetType: "inline"
script: "yarn --ignore-engines --cwd ./src/UI/auth-ui"
- task: Bash@3
inputs:
targetType: "inline"
script: "yarn --ignore-engines --cwd ./src/UI/auth-ui build"
- task: PublishPipelineArtifact@1
inputs:
targetPath: "src/Tool/src/Boost.Tool/AuthUI"
artifact: "ui-auth"
publishLocation: "pipeline"