1
- parameters :
2
- signStep : []
1
+ trigger :
2
+ branches :
3
+ include :
4
+ - master
5
+ - rel/*
6
+ paths :
7
+ include :
8
+ - Rx.NET/Source/*
9
+ - .editorconfig
10
+ - azure-pipelines.rx.yml
11
+
12
+ pool :
13
+ vmImage : vs2017-win2016
14
+
15
+ variables :
16
+ BuildConfiguration : Release
17
+ BuildPlatform : Any CPU
3
18
4
19
steps :
5
20
- task : DotNetCoreCLI@2
@@ -13,10 +28,6 @@ steps:
13
28
- script : nbgv cloud -a -p Rx.NET\Source
14
29
displayName : Set Version
15
30
condition : and(succeeded(), eq(variables['system.pullrequest.isfork'], false))
16
-
17
- - task : DotNetCoreInstaller@0
18
- inputs :
19
- version : ' 2.1.400-preview-009171'
20
31
21
32
- task : MSBuild@1
22
33
displayName : Build System.Reactive.sln
@@ -57,11 +68,19 @@ steps:
57
68
arguments : -c $(BuildConfiguration) --no-build --no-restore
58
69
displayName : Run Api Approvals Tests
59
70
60
- - ${{ parameters.signStep }}
71
+ - task : PowerShell@2
72
+ displayName : Authenticode Sign Packages
73
+ inputs :
74
+ filePath : Rx.NET/Source/build/Sign-Package.ps1
75
+ env :
76
+ SignClientUser : $(SignClientUser)
77
+ SignClientSecret : $(SignClientSecret)
78
+ ArtifactDirectory : $(Build.ArtifactStagingDirectory)\artifacts
79
+ condition : and(succeeded(), not(eq(variables['build.reason'], 'PullRequest')), not(eq(variables['SignClientSecret'], '')), not(eq(variables['SignClientUser'], '')))
61
80
62
81
- task : PublishBuildArtifacts@1
63
82
inputs :
64
83
PathtoPublish : $(Build.ArtifactStagingDirectory)\artifacts
65
84
ArtifactName : artifacts
66
85
publishLocation : Container
67
- condition : eq(variables['system.pullrequest.isfork'], false)
86
+ condition : and(succeeded(), eq(variables['system.pullrequest.isfork'], false) )
0 commit comments