mirror of
https://github.com/zoriya/octokit.net.git
synced 2025-12-06 07:16:09 +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
30 lines
786 B
C#
30 lines
786 B
C#
using Cake.Core;
|
|
using Cake.Core.IO;
|
|
using Cake.Frosting;
|
|
|
|
public class Context : FrostingContext
|
|
{
|
|
public string Target { get; set; }
|
|
public string Configuration { get; set; }
|
|
public bool LinkSources { get; set; }
|
|
public BuildVersion Version { get; set; }
|
|
|
|
public DirectoryPath Artifacts { get; set; }
|
|
|
|
public bool IsLocalBuild { get; set; }
|
|
public bool IsPullRequest { get; set; }
|
|
public bool IsOriginalRepo { get; set; }
|
|
public bool IsTagged { get; set; }
|
|
public bool IsMasterBranch { get; set; }
|
|
public bool ForcePublish { get; set; }
|
|
|
|
public bool AppVeyor { get; set; }
|
|
public bool TravisCI { get; set; }
|
|
|
|
public Project[] Projects { get; set; }
|
|
|
|
public Context(ICakeContext context)
|
|
: base(context)
|
|
{
|
|
}
|
|
} |