Skip to content

Commit

Permalink
GitHubSync update
Browse files Browse the repository at this point in the history
  • Loading branch information
GeertvanHorrik committed Nov 28, 2024
1 parent 0cba74a commit 3999694
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion deployment/cake/lib-signing.cake
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,13 @@ public static void SignFilesInDirectory(BuildContext buildContext, string direct
var codeSignContext = buildContext.General.CodeSign;
var azureCodeSignContext = buildContext.General.AzureCodeSign;

var certificateSubjectName = buildContext.General.CodeSign.CertificateSubjectName;
if (buildContext.General.IsLocalBuild ||
buildContext.General.IsCiBuild)
{
// Never code-sign local or ci builds
return;
}

if (!codeSignContext.IsAvailable &&
!azureCodeSignContext.IsAvailable)
{
Expand Down Expand Up @@ -259,6 +265,13 @@ public static void SignNuGetPackage(BuildContext buildContext, string fileName)
return;
}

if (!codeSignContext.IsAvailable &&
!azureCodeSignContext.IsAvailable)
{
buildContext.CakeContext.Information("Skipping code signing because none of the options is available");
return;
}

buildContext.CakeContext.Information($"Signing NuGet package '{fileName}'");

if (azureCodeSignContext.IsAvailable)
Expand Down

0 comments on commit 3999694

Please sign in to comment.