|
@@ -11,40 +11,18 @@ trigger:
|
|
|
- NuGet.Config
|
|
|
|
|
|
queue: Hosted VS2017
|
|
|
-
|
|
|
variables:
|
|
|
BuildConfiguration: Release
|
|
|
- BuildPlatform: Any CPU
|
|
|
-
|
|
|
+
|
|
|
steps:
|
|
|
-- task: BatchScript@1
|
|
|
- inputs:
|
|
|
- filename: "C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Enterprise\\Common7\\Tools\\VsDevCmd.bat"
|
|
|
- arguments: -no_logo
|
|
|
- modifyEnvironment: true
|
|
|
- displayName: Setup Environment Variables
|
|
|
-
|
|
|
-- task: DotNetCoreCLI@2
|
|
|
- inputs:
|
|
|
- command: build
|
|
|
- projects: Ix.NET/Source/build/setversion.csproj
|
|
|
- arguments: -c $(BuildConfiguration)
|
|
|
- displayName: Set Version
|
|
|
-
|
|
|
-- task: PowerShell@1
|
|
|
- inputs:
|
|
|
- scriptName: 'Ix.NET/Source/build-new.ps1'
|
|
|
- workingFolder: 'Ix.NET/Source'
|
|
|
- env:
|
|
|
- VSTS_ACCESS_TOKEN: $(System.AccessToken)
|
|
|
- SignClientUser: $(SignClientUser)
|
|
|
- SignClientSecret: $(SignClientSecret)
|
|
|
- COVERALLS_REPO_TOKEN: $(CoverallsToken)
|
|
|
- displayName: Build
|
|
|
-
|
|
|
-- task: PublishBuildArtifacts@1
|
|
|
- inputs:
|
|
|
- PathtoPublish: 'Ix.NET/Source/artifacts'
|
|
|
- ArtifactName: artifacts
|
|
|
- publishLocation: Container
|
|
|
- condition: always()
|
|
|
+- template: .vsts.ix-shared.yml
|
|
|
+ parameters:
|
|
|
+ signStep:
|
|
|
+ - task: PowerShell@2
|
|
|
+ displayName: Authenticode Sign Packages
|
|
|
+ inputs:
|
|
|
+ filePath: Ix.NET/Source/build/Sign-Package.ps1
|
|
|
+ env:
|
|
|
+ SignClientUser: $(SignClientUser)
|
|
|
+ SignClientSecret: $(SignClientSecret)
|
|
|
+ ArtifactDirectory: $(Build.ArtifactStagingDirectory)\artifacts
|