forked from microsoft/fluentui-blazor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
90 lines (78 loc) · 2 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
79
80
81
82
83
84
85
86
87
88
89
90
name: Publish Microsoft Fast-Blazor
pr: none
trigger: none
pool:
vmImage: 'windows-2022'
variables:
project: '**/Microsoft.Fast.Components.FluentUI.csproj'
buildPlatform: 'Any CPU'
buildConfiguration: 'Release'
steps:
- task: NuGetToolInstaller@1
displayName: Install NuGet tools
- task: UseDotNet@2
displayName: 'Install .NET Core 2.1 for ESRP Code Sign tool'
inputs:
version: 2.1.x
- task: UseDotNet@2
displayName: 'Install .NET 6.0'
inputs:
version: 6.0.x
includePreviewVersions: true
- task: UseDotNet@2
displayName: 'Install .NET 7.0'
inputs:
version: 7.0.x
includePreviewVersions: true
- task: DotNetCoreCLI@2
displayName: Restore packages
inputs:
command: 'restore'
projects: $(project)
- task: DotNetCoreCLI@2
displayName: Build
inputs:
command: 'build'
projects: $(project)
- task: DotNetCoreCLI@2
displayName: Pack
inputs:
command: 'pack'
packagesToPack: $(project)
versioningScheme: 'off'
- task: EsrpCodeSigning@1
displayName: Code Signing Assemblies (Authenticode Signing)
inputs:
ConnectedServiceName: 'FAST-NuGet-Publishing-SC'
FolderPath: '$(Build.ArtifactStagingDirectory)'
Pattern: |
**/*.nupkg
UseMinimatch: true
signConfigType: 'inlineSignParams'
inlineOperation: |
[
{
"KeyCode" : "CP-401405",
"OperationCode" : "NuGetSign",
"Parameters" : {},
"ToolName" : "sign",
"ToolVersion" : "1.0"
},
{
"KeyCode" : "CP-401405",
"OperationCode" : "NuGetVerify",
"Parameters" : {},
"ToolName" : "sign",
"ToolVersion" : "1.0"
}
]
SessionTimeout: '60'
MaxConcurrency: '200'
MaxRetryAttempts: '5'
- task: NuGetCommand@2
displayName: Publish to NuGet
inputs:
command: 'push'
packagesToPush: '$(Build.ArtifactStagingDirectory)\*.nupkg;'
nuGetFeedType: 'external'
publishFeedCredentials: 'NugetServiceConnect'