Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit c466a49

Browse files
authored
Allow republishing of signed packages to Azure during official builds (#19170)
1 parent eeb7d0b commit c466a49

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

src/publish.proj

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,7 @@
2020
<Error Condition="'@(ForPublishing)' == ''" Text="No items were found matching pattern '$(PublishPattern)'." />
2121
</Target>
2222

23-
<PropertyGroup>
24-
<PublishPattern Condition="'$(PublishPattern)' == ''">$(PackagesBinDir)**\*.nupkg</PublishPattern>
25-
</PropertyGroup>
26-
23+
<!-- Set up publish patterns for "final" package publish - that is, the pipeline packages we download & publish to myget during official builds -->
2724
<PropertyGroup>
2825
<PackageDownloadDirectory Condition="'$(DownloadDirectory)' == ''">$(PackagesDir)AzureTransfer\$(ConfigurationGroup)</PackageDownloadDirectory>
2926
<FinalPublishPattern>$(PackageDownloadDirectory)\**\*.nupkg</FinalPublishPattern>
@@ -32,6 +29,13 @@
3229
<OutDir>$(PackageDownloadDirectory)</OutDir>
3330
</PropertyGroup>
3431

32+
<PropertyGroup>
33+
<!-- If we're re-publishing signed final packages, use the location of the downloaded pipeline packages -->
34+
<PublishPattern Condition="'$(PublishPattern)' == '' and '$(RepublishSignedFinalPackages)' == 'true'">$(FinalPublishPattern)</PublishPattern>
35+
<!-- Otherwise, publish the packages built locally -->
36+
<PublishPattern Condition="'$(PublishPattern)' == ''">$(PackagesBinDir)**\*.nupkg</PublishPattern>
37+
</PropertyGroup>
38+
3539
<Target Name="GetPackagesToSign">
3640
<ItemGroup>
3741
<FilesToSign Include="$(FinalPublishPattern)" Exclude="$(FinalSymbolsPackagesPattern)">

0 commit comments

Comments
 (0)