Using PackagePublisher tool to publish packages as it does retries
This commit is contained in:
parent
dd3889869c
commit
71d09dc15c
|
|
@ -77,7 +77,7 @@
|
|||
Condition="'$(PublishPackages)'=='true' AND '@(RepositoryNupkgs)' != ''" />
|
||||
|
||||
<Exec
|
||||
Command="$(DotNetPath) nuget push "%(RepositoryNupkgs.Identity)" -s $(NuGetPublishVolatileFeed) -k $(APIKEY)"
|
||||
Command="$(PackagePublisherPath) -d $(RepositoryArtifactsDirectory) -f $(NuGetPublishVolatileFeed)"
|
||||
Condition="'$(PublishPackages)'=='true' AND '@(RepositoryNupkgs)' != ''" />
|
||||
|
||||
<Message Text="============ Done building $(RepositoryToBuild) ============" Importance="High" />
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<Project>
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<NuGetPublishVolatileFeed>https://dotnet.myget.org/F/aspnetcore-volatile-dev/api/v2/package</NuGetPublishVolatileFeed>
|
||||
|
||||
|
|
@ -18,6 +18,10 @@
|
|||
<BuildDependsOn>$(BuildDependsOn);CloneRepositories;BuildRepositories</BuildDependsOn>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="PackagePublisher" Version="1.0.1-*" />
|
||||
</ItemGroup>
|
||||
|
||||
<Import
|
||||
Project="$(_DependencyRepositoryList)"
|
||||
Condition="Exists('$(_DependencyRepositoryList)')" />
|
||||
|
|
@ -100,8 +104,18 @@
|
|||
Condition="'$(CloneRepositoryCommit)'!=''" />
|
||||
</Target>
|
||||
|
||||
<Target Name="_ResolvePackagePublisherPath" DependsOnTargets="RunResolvePackageDependencies">
|
||||
<ItemGroup>
|
||||
<PackagePublisherPath Include="%(PackageDefinitions.ResolvedPath)" Condition="'%(PackageDefinitions.Name)'=='PackagePublisher'" />
|
||||
</ItemGroup>
|
||||
|
||||
<PropertyGroup>
|
||||
<_PackagePublisherPath>@(PackagePublisherPath)\PackagePublisher.exe</_PackagePublisherPath>
|
||||
</PropertyGroup>
|
||||
</Target>
|
||||
|
||||
<Target Name="BuildRepositories"
|
||||
DependsOnTargets="_FilterRepositories;_FindDotNetPath;_GenerateRestoreGraphSpecs;_GenerateBuildGraph;_UpdateNuGetConfig;_CreateRepositoriesListWithCommits">
|
||||
DependsOnTargets="_FilterRepositories;_FindDotNetPath;_ResolvePackagePublisherPath;_GenerateRestoreGraphSpecs;_GenerateBuildGraph;_UpdateNuGetConfig;_CreateRepositoriesListWithCommits">
|
||||
|
||||
<PropertyGroup>
|
||||
<_BuildRepositoryProperties>
|
||||
|
|
@ -117,7 +131,8 @@
|
|||
_CloneRepositoryRoot=$(_CloneRepositoryRoot);
|
||||
_DependencyPackagesDirectory=$(_DependencyPackagesDirectory);
|
||||
_RepositoryBuildTargets=$(_RepositoryBuildTargets);
|
||||
_RestoreGraphSpecsDirectory=$(_RestoreGraphSpecsDirectory)
|
||||
_RestoreGraphSpecsDirectory=$(_RestoreGraphSpecsDirectory);
|
||||
PackagePublisherPath=$(_PackagePublisherPath)
|
||||
</_BuildRepositoryProperties>
|
||||
|
||||
<_BuildRepositoryProperties Condition="'$(PublishPackages)'=='true'">
|
||||
|
|
|
|||
Loading…
Reference in New Issue