Skip to content
haf edited this page Nov 1, 2014 · 8 revisions

Used as follows:

Albacore::Tasks::Release.new :release,
                             pkg_dir: 'build/pkg',
                             depend_on: :create_nuget,
                             nuget_exe: 'packages/NuGet.CommandLine/tools/NuGet.exe',
                             api_key: ENV['NUGET_KEY']

Takes following options:

  • pkg_dir: path to directory where nugets end up

  • nuget_exe: path to nuget.exe file

  • nuget_source: https-source or otherwise where to push the nuget

  • clr_command: if you have redirected NuGet.exe to something that your operating system can run on its own, give false here, otherwise true and it will work out of the box

  • depend_on: a symbol or array of symbol for the tasks that the release-task you create depend on

  • semver: an optional semver-instance (see the semver gem) - otherwise subscribes to the :build_version message type with Albacore.subscribe and gets it from e.g. the Versioniser task.

Will abort if:

  • dirty tree

  • missing nuget.exe

  • tag already released

  • you haven’t created a package in the package folder that is to be released which matches the current semver version

Clone this wiki locally