forked from Keboo/ShowMeTheXAML
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.azure-pipelines.yml
74 lines (62 loc) · 1.74 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
pool:
vmImage: 'windows-2022'
trigger:
batch: 'true'
branches:
include:
- master
variables:
- name: PackageOutputPath
value: '$(Build.ArtifactStagingDirectory)'
- name: GeneratePackageOnBuild
value: true
- group: 'Uno Platform authenticode signing'
steps:
- template: build/ci/templates/dotnet-install-windows.yml
- template: build/ci/templates/jdk-setup.yml
- task: UseDotNet@2
displayName: 'Use .Net Core runtime 5.0.3'
inputs:
packageType: runtime
version: 5.0.3
- task: UseDotNet@2
displayName: 'Use .Net Core runtime 3.1.0'
inputs:
packageType: runtime
version: 3.1.0
- task: gitversion/setup@0
inputs:
versionSpec: '5.6.8'
- task: gitversion/execute@0
inputs:
useConfigFile: true
configFilePath: gitversion.yml
displayName: Use GitVersion
- task: NuGetToolInstaller@1
inputs:
versionSpec: 5.0.2
- task: MSBuild@1
inputs:
solution: Uno.ShowMeTheXAML.sln
configuration: Release
platform: 'Any CPU'
msbuildArguments: /r /p:PackageVersion=$(GitVersion.NuGetVersion)
- task: DotNetCoreInstaller@0
inputs:
version: '2.1.504'
- task: PowerShell@2
displayName: Authenticode Sign Packages
inputs:
filePath: build/ci/sign-package.ps1
env:
SignClientUser: $(SignClientUser)
SignClientSecret: $(SignClientSecret)
SignPackageName: "Uno.ShowMeTheXaml"
SignPackageDescription: "Uno.ShowMeTheXaml"
ArtifactDirectory: $(build.artifactstagingdirectory)
condition: and(succeeded(), not(eq(variables['build.reason'], 'PullRequest')), not(eq(variables['SignClientSecret'], '')), not(eq(variables['SignClientUser'], '')))
- task: PublishBuildArtifacts@1
inputs:
ArtifactName: Packages
PathtoPublish: $(PackageOutputPath)
publishLocation: Container