-
Notifications
You must be signed in to change notification settings - Fork 1
/
azure-pipelines.yml
47 lines (42 loc) · 1.37 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
trigger:
- main
- release/*
stages:
- stage: build
displayName: Execute Build
jobs:
- job: BuildArtifacts
displayName: Build Project Artifacts
variables:
NUGET_PACKAGES: $(Pipeline.Workspace)/.nuget/packages
frontend.src: 'src/frontend'
npm_config_cache: $(Pipeline.Workspace)/.npm
pool:
vmImage: 'windows-latest'
steps:
- checkout: self
persistCredentials: true
- task: UseDotNet@2
inputs:
packageType: "sdk"
useGlobalJson: true
- task: UseNode@1
inputs:
version: 14.x
- task: DotNetCoreCLI@2
displayName: Restore dotnet tools
inputs:
command: "custom"
custom: "tool"
arguments: "restore"
- script: dotnet cake"
displayName: Run Cake
- task: GitTag@6
displayName: "Tag Artifacts"
condition: and(Succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/heads/release/'))
inputs:
workingdir: '$(SYSTEM.DEFAULTWORKINGDIRECTORY)'
tagUser: 'pipeline'
tagEmail: '[email protected]'
tag: '$(build.buildNumber)'
useLightweightTags: true