Skip to content

Commit

Permalink
Updated CCB push packages.
Browse files Browse the repository at this point in the history
  • Loading branch information
olivier-spinelli authored and CKli committed Dec 11, 2024
1 parent 01ea475 commit 0070772
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CodeCakeBuilder/dotnet/Build.NuGetHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -367,12 +367,12 @@ public override async Task PushAsync( IEnumerable<ArtifactPush> pushes )
var logger = InitializeAndGetLogger( Cake );
var updater = await _updater;
var names = pushes.Select( p => p.Name + "." + p.Version.WithBuildMetaData( null ).ToNormalizedString() );
var fullPaths = names.Select( n => ArtifactType.GlobalInfo.ReleasesFolder.AppendPart( n + ".nupkg" ).ToString() );
var fullPaths = names.Select( n => ArtifactType.GlobalInfo.ReleasesFolder.AppendPart( n + ".nupkg" ).ToString() ).ToList();

await updater.Push(
fullPaths.ToList(),
fullPaths,
string.Empty, // no Symbol source.
2*60, // 2 minutes timeout
30 * fullPaths.Count, // 30 seconds per package timeout.
disableBuffering: false,
getApiKey: endpoint => apiKey,
getSymbolApiKey: symbolsEndpoint => null,
Expand Down
1 change: 1 addition & 0 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
<ImplicitUsings>disable</ImplicitUsings>
<!--Nullable Reference Type should always be used!-->
<Nullable>enable</Nullable>
<!--Nullable Reference Type should always be used!-->
<PackageIcon>PackageIcon.png</PackageIcon>
<AssemblyOriginatorKeyFile>$(SolutionDir)Common/SharedKey.snk</AssemblyOriginatorKeyFile>
<SignAssembly>true</SignAssembly>
Expand Down

0 comments on commit 0070772

Please sign in to comment.