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

Commit 8768823

Browse files
authored
Allow republishing of signed packages to Azure during official builds (#19169)
1 parent e4e5b67 commit 8768823

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>
@@ -33,6 +30,13 @@
3330
<OutDir>$(PackageDownloadDirectory)</OutDir>
3431
</PropertyGroup>
3532

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

0 commit comments

Comments
 (0)