Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions src/publish.proj
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,7 @@
<Error Condition="'@(ForPublishing)' == ''" Text="No items were found matching pattern '$(PublishPattern)'." />
</Target>

<PropertyGroup>
<PublishPattern Condition="'$(PublishPattern)' == ''">$(PackagesBinDir)**\*.nupkg</PublishPattern>
</PropertyGroup>

<!-- Set up publish patterns for "final" package publish - that is, the pipeline packages we download & publish to myget during official builds -->
<PropertyGroup>
<PackageDownloadDirectory Condition="'$(DownloadDirectory)' == ''">$(PackagesDir)AzureTransfer\$(ConfigurationGroup)</PackageDownloadDirectory>
<FinalPublishPattern>$(PackageDownloadDirectory)\**\*.nupkg</FinalPublishPattern>
Expand All @@ -33,6 +30,13 @@
<OutDir>$(PackageDownloadDirectory)</OutDir>
</PropertyGroup>

<PropertyGroup>
<!-- If we're re-publishing signed final packages, use the location of the downloaded pipeline packages -->
<PublishPattern Condition="'$(PublishPattern)' == '' and '$(RepublishSignedFinalPackages)' == 'true'">$(FinalPublishPattern)</PublishPattern>
<!-- Otherwise, publish the packages built locally -->
<PublishPattern Condition="'$(PublishPattern)' == ''">$(PackagesBinDir)**\*.nupkg</PublishPattern>
</PropertyGroup>

<Target Name="GetPackagesToSign">
<ItemGroup>
<FilesToSign Include="$(FinalPublishPattern)" Exclude="$(FinalPublishPrivatePattern);$(FinalSymbolsPackagesPattern)">
Expand Down