Created
February 8, 2016 15:45
-
-
Save swade1987/e905c3ade02f4613cf58 to your computer and use it in GitHub Desktop.
chocolatey package
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
task PushChocolateyPackage { | |
$file = @(Get-Item $build_output_dir\*.nupkg)[0] | |
Write-Host "Installing NuGet" | |
Exec { choco install nuget.commandline } | |
Write-Host "Setting api key" | |
Exec { choco apikey -k $apiKey -s $chocolateySource } | |
Write-Host "Pushing new Chocolatey package to Artifactory ..." | |
Exec { choco push $file -s $chocolateySource -k $apiKey } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment