-
Notifications
You must be signed in to change notification settings - Fork 78
/
azure-pipelines.yml
78 lines (65 loc) · 1.81 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
trigger:
- main
- dev/*
- rel/*
pr:
- main
- dev/*
- rel/*
pool:
vmImage: windows-2022
variables:
BuildConfiguration: Lottie-Windows
steps:
# Set up a VS build environment.
- task: BatchScript@1
displayName: Setup Environment Variables
inputs:
filename: "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\Common7\\Tools\\VsDevCmd.bat"
arguments: -no_logo
modifyEnvironment: true
# Install NuGet tools.
- task: NuGetToolInstaller@1
displayName: Use NuGet 6.5.0
inputs:
versionSpec: 6.5.0
# Install Nerbank.GitVersioning.
- task: DotNetCoreCLI@2
displayName: Install NBGV tool
inputs:
command: custom
custom: tool
arguments: install --tool-path . nbgv
# .NET Core SDK Installer.
- task: UseDotNet@2
inputs:
packageType: 'sdk' # Options: runtime, sdk
version: '7.0.x'
# Nerdbank.GitVersioning
- script: nbgv cloud
displayName: Set Version
# Install the Windows SDK. Version 18362 (Windows 1909 release).
# This is needed to build the UWP code.
- powershell: .\build\Install-WindowsSdkISO.ps1 18362
displayName: Insider SDK
# Run the build.
- powershell: .\build.ps1 --target=Package
displayName: Build
workingDirectory: .\build
# Sign the result of the build.
- task: PowerShell@2
displayName: Authenticode Sign Packages
inputs:
filePath: build/Sign-Package.ps1
env:
SignClientUser: $(SignClientUser)
SignClientSecret: $(SignClientSecret)
ArtifactDirectory: bin\nupkg
condition: and(succeeded(), not(eq(variables['build.reason'], 'PullRequest')), not(eq(variables['SignClientSecret'], '')), not(eq(variables['SignClientUser'], '')))
# Publish the results of the build.
- task: PublishBuildArtifacts@1
displayName: Publish Package Artifacts
inputs:
pathToPublish: .\bin\nupkg
artifactType: container
artifactName: Packages