mirror of
https://github.com/zoriya/octokit.net.git
synced 2025-12-18 05:05:14 +00:00
* add sourcelink support * Update sourcelink (2.0.2 -> 2.1.0) * Add parameter to enable source linking * tidy up the arguments with an extension method allowing an argument to be conditionally appended * Add an explicit "test sourcelink" build task and remove the MSBuild one, so we can get some build script output without needing the whole build to be in verbose logging * run sourcelink test against the NuGet packages
19 lines
609 B
C#
19 lines
609 B
C#
using Cake.Common.Tools.DotNetCore;
|
|
using Cake.Common.Tools.DotNetCore.Build;
|
|
using Cake.Core;
|
|
using Cake.Frosting;
|
|
|
|
[Dependency(typeof(Restore))]
|
|
public class Build : FrostingTask<Context>
|
|
{
|
|
public override void Run(Context context)
|
|
{
|
|
context.DotNetCoreBuild("./Octokit.sln", new DotNetCoreBuildSettings
|
|
{
|
|
Configuration = context.Configuration,
|
|
ArgumentCustomization = args => args
|
|
.Append("/p:Version={0}", context.Version.GetSemanticVersion())
|
|
.AppendIfTrue(context.LinkSources, "/p:SourceLinkCreate=true")
|
|
});
|
|
}
|
|
} |