Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
ricaun committed Dec 11, 2024
1 parent 50a05d3 commit 7d78d29
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 2 deletions.
1 change: 1 addition & 0 deletions Build/.nuke/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
temp
2 changes: 1 addition & 1 deletion Build/.nuke/build.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@
"ExecutableTarget": {
"type": "string",
"enum": [
"AzureSignTool",
"Build",
"Clean",
"Compile",
"GenerateTools",
"GitRelease",
"NuGetKeyVaultSign",
"Release",
"Sign",
"Test"
Expand Down
2 changes: 1 addition & 1 deletion Build/Build.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Build>(x => x.From<IPublish>().Build);
Expand Down
22 changes: 22 additions & 0 deletions Build/IAzureSignTool.cs
Original file line number Diff line number Diff line change
@@ -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<NuGetKeyVaultSignToolTasks>()
//.Requires<AzureSignToolTasks>()
.Requires<ILRepackTasks>()
.Executes(() =>
{
Serilog.Log.Information(AzureSignToolTasks.AzureSignToolPath);
Serilog.Log.Information(NuGetKeyVaultSignToolTasks.NuGetKeyVaultSignToolPath);
});
}

0 comments on commit 7d78d29

Please sign in to comment.