forked from Redth/Plugin.SocialAuth
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.cake
More file actions
28 lines (19 loc) · 689 Bytes
/
Copy pathbuild.cake
File metadata and controls
28 lines (19 loc) · 689 Bytes
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
var NUGET_VERSION = Argument ("nugetversion", "0.0.0.1");
var TARGET = Argument ("target", "nuget");
Task ("libs").Does (() => {
EnsureDirectoryExists ("./artifacts/");
NuGetRestore ("./Plugin.SocialAuth.sln");
MSBuild ("./Plugin.SocialAuth.sln", c => c.Configuration = "Release");
});
Task ("nuget").IsDependentOn("libs").Does (() => {
var nuspecs = GetFiles ("./NuSpec/*.nuspec");
foreach (var ns in nuspecs) {
NuGetPack (ns, new NuGetPackSettings {
Version = NUGET_VERSION,
BasePath = "./NuSpec",
OutputDirectory = "./artifacts/",
});
}
});
Task ("Default").IsDependentOn("nuget");
RunTarget (TARGET);