diff --git a/Build/.nuke/.gitignore b/Build/.nuke/.gitignore new file mode 100644 index 0000000..9c595a6 --- /dev/null +++ b/Build/.nuke/.gitignore @@ -0,0 +1 @@ +temp diff --git a/Build/.nuke/build.schema.json b/Build/.nuke/build.schema.json index 2ad2f99..df76621 100644 --- a/Build/.nuke/build.schema.json +++ b/Build/.nuke/build.schema.json @@ -24,12 +24,12 @@ "ExecutableTarget": { "type": "string", "enum": [ + "AzureSignTool", "Build", "Clean", "Compile", "GenerateTools", "GitRelease", - "NuGetKeyVaultSign", "Release", "Sign", "Test" diff --git a/Build/Build.cs b/Build/Build.cs index ba1652b..407d6c6 100644 --- a/Build/Build.cs +++ b/Build/Build.cs @@ -3,7 +3,7 @@ using ricaun.Nuke; using ricaun.Nuke.Components; -class Build : NukeBuild, IPublish, ITest, IGenerateTools, INuGetKeyVaultSign +class Build : NukeBuild, IPublish, ITest, IGenerateTools, IAzureSignTool//, INuGetKeyVaultSign { string ITest.TestProjectName => "Nuke.NuGetKeyVaultSignTool"; public static int Main() => Execute(x => x.From().Build); diff --git a/Build/IAzureSignTool.cs b/Build/IAzureSignTool.cs new file mode 100644 index 0000000..d36aecb --- /dev/null +++ b/Build/IAzureSignTool.cs @@ -0,0 +1,22 @@ +using Nuke.Common; +using Nuke.Common.Tools.AzureSignTool; +using Nuke.Common.Tools.AzureKeyVault; +using ricaun.Nuke.Components; +using ricaun.Nuke.Tools.NuGetKeyVaultSignTool; +using Nuke.Common.Tools.ILRepack; +using ricaun.Nuke.Tools; + +public interface IAzureSignTool : IClean, ICompile +{ + Target AzureSignTool => _ => _ + .TriggeredBy(Clean) + .Before(Compile) + //.Requires() + //.Requires() + .Requires() + .Executes(() => + { + Serilog.Log.Information(AzureSignToolTasks.AzureSignToolPath); + Serilog.Log.Information(NuGetKeyVaultSignToolTasks.NuGetKeyVaultSignToolPath); + }); +}