forked from CommunityToolkit/ColorCode-Universal
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.azure-pipelines.yml
More file actions
69 lines (56 loc) · 1.77 KB
/
Copy path.azure-pipelines.yml
File metadata and controls
69 lines (56 loc) · 1.77 KB
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
jobs:
- job: Windows
pool:
vmImage: 'windows-2022'
variables:
NUGET_PACKAGES: $(Agent.WorkFolder)\.nuget
steps:
- checkout: self
clean: true
- task: NuGetToolInstaller@0
inputs:
versionSpec: 4.9.1
checkLatest: false
- task: gitversion/setup@0
retryCountOnTaskFailure: 3
inputs:
versionSpec: '5.6.8'
- task: gitversion/execute@0
retryCountOnTaskFailure: 3
inputs:
updateAssemblyInfo: 'False'
useConfigFile: true
configFilePath: gitversion.yml
displayName: Use GitVersion
- template: build/ci/dotnet-install-windows.yml
- powershell: .\build\Install-WindowsSdkISO.ps1 18362
displayName: Install Windows SDK 18362
- powershell: .\build\build.ps1
- task: CopyFiles@2
inputs:
SourceFolder: $(build.sourcesdirectory)
Contents: '$(build.sourcesdirectory)\build\nupkg\*.nupkg'
TargetFolder: $(build.artifactstagingdirectory)
CleanTargetFolder: false
OverWrite: false
flattenFolders: false
- task: DotNetCoreInstaller@0
inputs:
version: '2.1.504'
- task: PowerShell@2
displayName: Authenticode Sign Packages
inputs:
filePath: build/Sign-Package.ps1
env:
SignClientUser: $(SignClientUser)
SignClientSecret: $(SignClientSecret)
SignPackageName: "Uno.PackageDiff"
SignPackageDescription: "Uno.PackageDiff"
ArtifactDirectory: $(build.artifactstagingdirectory)
condition: and(succeeded(), not(eq(variables['build.reason'], 'PullRequest')), not(eq(variables['SignClientSecret'], '')), not(eq(variables['SignClientUser'], '')))
- task: PublishBuildArtifacts@1
condition: always()
inputs:
PathtoPublish: $(build.artifactstagingdirectory)
ArtifactName: drop
ArtifactType: Container