-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrelease.cake
More file actions
35 lines (29 loc) · 1.25 KB
/
release.cake
File metadata and controls
35 lines (29 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#reference "tools/AutoCake.Release/tools/AutoCake.Release.dll"
#load "tools/AutoCake.Release/content/release-tasks.cake"
#load "tools/AutoCake.Release/content/git-tasks.cake"
//////////////////////////////////////////////////////////////////////
// Configuration
//////////////////////////////////////////////////////////////////////
GitFlow.RunBuildTarget = () =>
{
// See release-scripts/README.md for additional configuration options
// and details on the syntax of this call.
//
// I prefer to add the version information to the build-output directory.
// This way debugging gets a lot easier at to cost of some minimally larger
// disk usage. Disks are cheap, developer hours are not.
var versionInfo = GitVersioningAliases.FetchVersion();
CakeRunnerAlias.RunCake(Context, new CakeSettings {
Arguments = new Dictionary<string, string>()
{
{ "targetdir", "build-artefacts/" + versionInfo.FullSemVer }
}
});
};
//////////////////////////////////////////////////////////////////////
// Standard boiler-plate code.
//////////////////////////////////////////////////////////////////////
Task("Default")
.IsDependentOn("Attempt-Release");
var target = Argument("target", "Default");
RunTarget(target);