Skip to content

Commit

Permalink
Merge pull request #952 from WildGums/GitHubSync/20241209-082257
Browse files Browse the repository at this point in the history
GitHubSync update
  • Loading branch information
GeertvanHorrik authored Dec 9, 2024
2 parents da21c84 + d2c52e4 commit 8569e47
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 5 deletions.
3 changes: 1 addition & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ updates:
interval: weekly

- package-ecosystem: nuget
directories:
- "/"
directories:
- "/src"
schedule:
interval: daily
Expand Down
4 changes: 2 additions & 2 deletions deployment/cake/lib-msbuild.cake
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#addin "nuget:?package=Cake.Issues&version=4.12.0"
#addin "nuget:?package=Cake.Issues.MsBuild&version=4.12.0"
#addin "nuget:?package=Cake.Issues&version=5.0.0"
#addin "nuget:?package=Cake.Issues.MsBuild&version=5.0.0"
#addin "nuget:?package=System.Configuration.ConfigurationManager&version=9.0.0"

#tool "nuget:?package=MSBuild.Extension.Pack&version=1.9.1"
Expand Down
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 8569e47

Please sign in to comment.