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: ...@@ -146,18 +146,16 @@ jobs:
inputs: inputs:
artifactName: PackageAssets artifactName: PackageAssets
downloadPath: $(Build.SourcesDirectory)/binaries 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: | - script: |
cd %BUILD_SOURCESDIRECTORY%/.nuget python %BUILD_SOURCESDIRECTORY%/.nuget/create_nuget.py %BUILD_SOURCESDIRECTORY%/binaries/PackageAssets
python create_nuget.py %BUILD_SOURCESDIRECTORY%/binaries/PackageAssets displayName: 'Create NuGet configuration files'
nuget.exe pack LightGBM.nuspec - task: NuGetCommand@2
xcopy *.nupkg %BUILD_ARTIFACTSTAGINGDIRECTORY% inputs:
displayName: 'Build NuGet package' command: pack
packagesToPack: '$(Build.SourcesDirectory)/.nuget/*.nuspec'
packDestination: '$(Build.ArtifactStagingDirectory)'
- task: PublishBuildArtifacts@1 - task: PublishBuildArtifacts@1
inputs: inputs:
pathtoPublish: '$(Build.ArtifactStagingDirectory)' pathtoPublish: '$(Build.ArtifactStagingDirectory)'
artifactName: Nuget artifactName: NuGet
artifactType: container 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