forked from dotnet/sign
-
Notifications
You must be signed in to change notification settings - Fork 1
/
azure-pipelines.client.yml
63 lines (55 loc) · 1.45 KB
/
azure-pipelines.client.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
trigger:
branches:
include:
- master
- rel/*
paths:
include:
- src/SignClient/*
- .editorconfig
- azure-pipelines.client.yml
- version.json
- scripts/*
pr:
branches:
include:
- master
- rel/*
paths:
include:
- src/SignClient/*
- .editorconfig
- azure-pipelines.client.yml
- version.json
- scripts/*
pool:
vmImage: windows-2019
variables:
BuildConfiguration: Release
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
steps:
- task: DotNetCoreInstaller@0
inputs:
version: '3.0.100-preview6-011859'
- task: DotNetCoreCLI@2
inputs:
command: pack
packagesToPack: src/SignClient/SignClient.csproj
packDirectory: $(Build.ArtifactStagingDirectory)\Client
configuration: $(BuildConfiguration)
displayName: Build Client
- task: PowerShell@2
displayName: Authenticode Sign Client artifacts
inputs:
filePath: scripts/Sign-Package.ps1
env:
SignClientUser: $(SignClientUser)
SignClientSecret: $(SignClientSecret)
ArtifactDirectory: $(Build.ArtifactStagingDirectory)\Client
condition: and(succeeded(), not(eq(variables['build.reason'], 'PullRequest')), not(eq(variables['SignClientSecret'], '')), not(eq(variables['SignClientUser'], '')))
- task: PublishBuildArtifacts@1
displayName: Publish SignClient Artifact
inputs:
pathToPublish: $(Build.ArtifactStagingDirectory)\Client
artifactType: container
artifactName: SignClient