"include/vscode:/vscode.git/clone" did not exist on "d02a01ac6f51d36c9e62388243bcb75c3b1b1774"
Unverified Commit 4b1669c4 authored by Nikita Titov's avatar Nikita Titov Committed by GitHub
Browse files

[ci] build NuGet via built-in Azure tasks (#1753)

parent 108e80f2
......@@ -146,18 +146,16 @@ jobs:
inputs:
artifactName: PackageAssets
downloadPath: $(Build.SourcesDirectory)/binaries
- powershell: |
$client = new-object System.Net.WebClient
$client.DownloadFile("https://dist.nuget.org/win-x86-commandline/latest/nuget.exe", "$(Build.SourcesDirectory)/.nuget/nuget.exe")
displayName: 'Download NuGet application'
- script: |
cd %BUILD_SOURCESDIRECTORY%/.nuget
python create_nuget.py %BUILD_SOURCESDIRECTORY%/binaries/PackageAssets
nuget.exe pack LightGBM.nuspec
xcopy *.nupkg %BUILD_ARTIFACTSTAGINGDIRECTORY%
displayName: 'Build NuGet package'
python %BUILD_SOURCESDIRECTORY%/.nuget/create_nuget.py %BUILD_SOURCESDIRECTORY%/binaries/PackageAssets
displayName: 'Create NuGet configuration files'
- task: NuGetCommand@2
inputs:
command: pack
packagesToPack: '$(Build.SourcesDirectory)/.nuget/*.nuspec'
packDestination: '$(Build.ArtifactStagingDirectory)'
- task: PublishBuildArtifacts@1
inputs:
pathtoPublish: '$(Build.ArtifactStagingDirectory)'
artifactName: Nuget
artifactName: NuGet
artifactType: container
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment