Skip to content

Commit

Permalink
Merge pull request #709 from WildGums/GitHubSync/20241128-225011
Browse files Browse the repository at this point in the history
GitHubSync update
  • Loading branch information
GeertvanHorrik authored Nov 28, 2024
2 parents 4697a35 + f4af10b commit 5a518c8
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 5a518c8

Please sign in to comment.