42 lines
1005 B
YAML
42 lines
1005 B
YAML
|
jobs:
|
||
|
- job: Pack_Nuget
|
||
|
displayName: Pack Nuget bundles
|
||
|
condition: and(succeeded(), eq(variables['DoNuget'], 'true'))
|
||
|
|
||
|
pool:
|
||
|
vmName: win2016-vs2017
|
||
|
|
||
|
workspace:
|
||
|
clean: all
|
||
|
|
||
|
strategy:
|
||
|
matrix:
|
||
|
amd64:
|
||
|
Name: amd64
|
||
|
win32:
|
||
|
Name: win32
|
||
|
|
||
|
steps:
|
||
|
- checkout: none
|
||
|
|
||
|
- task: DownloadBuildArtifacts@0
|
||
|
displayName: 'Download artifact: layout_nuget_$(Name)'
|
||
|
inputs:
|
||
|
artifactName: layout_nuget_$(Name)
|
||
|
downloadPath: $(Build.BinariesDirectory)
|
||
|
|
||
|
- task: NugetToolInstaller@0
|
||
|
displayName: 'Install Nuget'
|
||
|
inputs:
|
||
|
versionSpec: '>=5.0'
|
||
|
|
||
|
- powershell: |
|
||
|
nuget pack "$(Build.BinariesDirectory)\layout_nuget_$(Name)\python.nuspec" -OutputDirectory $(Build.ArtifactStagingDirectory) -NoPackageAnalysis -NonInteractive
|
||
|
displayName: 'Create nuget package'
|
||
|
|
||
|
- task: PublishBuildArtifacts@1
|
||
|
displayName: 'Publish Artifact: nuget'
|
||
|
inputs:
|
||
|
PathtoPublish: '$(Build.ArtifactStagingDirectory)'
|
||
|
ArtifactName: nuget
|