63 строки
1.4 KiB
YAML
63 строки
1.4 KiB
YAML
trigger:
|
|
- master
|
|
- rel/*
|
|
|
|
pr:
|
|
- master
|
|
- rel/*
|
|
|
|
pool:
|
|
vmImage: vs2017-win2016
|
|
|
|
variables:
|
|
BuildConfiguration: Release
|
|
|
|
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: NuGetToolInstaller@0
|
|
displayName: Use NuGet 5.0.0
|
|
inputs:
|
|
versionSpec: 5.0.0
|
|
|
|
- task: DotNetCoreInstaller@0
|
|
inputs:
|
|
packageType: 'sdk'
|
|
version: '3.0.100-preview4-011223'
|
|
displayName: Install Dot Net Core SDK 3.0
|
|
|
|
- task: DotNetCoreCLI@2
|
|
inputs:
|
|
command: custom
|
|
custom: tool
|
|
arguments: install --tool-path . nbgv
|
|
displayName: Install NBGV tool
|
|
|
|
- script: nbgv cloud
|
|
displayName: Set Version
|
|
|
|
- powershell: .\build\build.ps1 -target=Package
|
|
displayName: Build
|
|
|
|
- task: PowerShell@2
|
|
displayName: Authenticode Sign Packages
|
|
inputs:
|
|
filePath: build/Sign-Package.ps1
|
|
env:
|
|
SignClientUser: $(SignClientUser)
|
|
SignClientSecret: $(SignClientSecret)
|
|
ArtifactDirectory: bin\nupkg
|
|
condition: and(succeeded(), not(eq(variables['build.reason'], 'PullRequest')), not(eq(variables['SignClientSecret'], '')), not(eq(variables['SignClientUser'], '')))
|
|
|
|
- task: PublishBuildArtifacts@1
|
|
displayName: Publish Package Artifacts
|
|
inputs:
|
|
pathToPublish: .\bin\nupkg
|
|
artifactType: container
|
|
artifactName: Packages
|