-
Notifications
You must be signed in to change notification settings - Fork 64
Release
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 withAlbacore.subscribe
and gets it from e.g. theVersioniser
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