-
Notifications
You must be signed in to change notification settings - Fork 9
/
build.cake
31 lines (27 loc) · 1.08 KB
/
build.cake
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
#load nuget:https://www.myget.org/F/arkord/api/v2?package=Cake.Baker
var twitterMessage = Messages.DefaultMessage + "\n#cakebuild #nuget #csharp #dotnet";
Task("CreateImage")
.IsDependeeOf("Image")
.Does(() =>
{
var pathTarget = Build.Paths.Directories.Image.Combine("lib/netstandard2.0");
var pathSource = string.Format("{0}/{1}/**/{1}.*", Build.Paths.Directories.PublishedLibraries, Build.Parameters.Title);
var files = GetFiles(pathSource).Where(fileSystemInfo =>
{
var fullPath = fileSystemInfo.FullPath;
return fullPath.EndsWith(".dll") || fullPath.EndsWith(".pdb") || fullPath.EndsWith(".xml");
});
CleanDirectory(pathTarget);
CopyFiles(Build.Paths.Files.License.ToString(), Build.Paths.Directories.Image);
CopyFiles(files, pathTarget);
});
Build
.SetParameters(
"Cake.Compression",
"akordowski",
shouldPublishToNuGet:true,
shouldPublishToGitHub:true,
shouldPostToTwitter:true)
.SetMessages(
twitterMessage: twitterMessage)
.Run();