Skip to content

Commit

Permalink
Fix publishing of checksums when RelativeBlobPathParent is provided (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
ViktorHofer authored Jan 29, 2025
1 parent 12025e3 commit 3bb46f9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Microsoft.DotNet.Arcade.Sdk/tools/Publish.proj
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,9 @@

<ItemGroup>
<!-- Set RelativeBlobPath if RelativeBlobPathParent is provided. -->
<Artifact Include="@(GenerateChecksumItems -> '%(DestinationPath)')">
<RelativeBlobPath Condition="'$(RelativeBlobPathParent)' != ''">$(RelativeBlobPathParent)%(Filename)%(Extension)</RelativeBlobPath>
<GenerateChecksumItemsWithDestinationPath Include="@(GenerateChecksumItems -> '%(DestinationPath)')" />
<Artifact Include="@(GenerateChecksumItemsWithDestinationPath)">
<RelativeBlobPath Condition="'$(RelativeBlobPathParent)' != ''">$(RelativeBlobPathParent.TrimEnd('/'))/%(Filename)%(Extension)</RelativeBlobPath>
</Artifact>
</ItemGroup>
</Target>
Expand Down

0 comments on commit 3bb46f9

Please sign in to comment.