Skip to content

Instantly share code, notes, and snippets.

@karaaie
Last active August 29, 2015 14:02
Show Gist options
  • Save karaaie/fc87382d5568941234d6 to your computer and use it in GitHub Desktop.
Save karaaie/fc87382d5568941234d6 to your computer and use it in GitHub Desktop.
require 'albacore'
require 'albacore/ext/teamcity'
task :build_nuget do
Dir.chdir('src/chocolatey/MyChocolateyPackage')
#The following command requires that chocolatey is on the
# SYSTEM-Path for the Teamcity-BuildAgent
system 'cpack'
Albacore.publish :artifact, OpenStruct.new(:location => "src/MyChocolateyPackage/*.nupkg")
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment