Skip to content

Commit

Permalink
Account for repositories with no packaes to publish
Browse files Browse the repository at this point in the history
  • Loading branch information
pranavkm committed Mar 15, 2017
1 parent 1db9776 commit 5bcf919
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build/RepositoryBuild.targets
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,11 @@
DestinationFolder="$(UniverseBuildDir)" />

<Message Text="Publishing the following packages to the volatile feed: @(RepositoryNupkgs -> '%(Filename)%(Extension)', ', ')"
Condition="'$(PublishPackages)'=='true'" />
Condition="'$(PublishPackages)'=='true' AND '@(RepositoryNupkgs)' != ''" />

<Exec
Command="$(DotNetPath) nuget push &quot;%(RepositoryNupkgs.Identity)&quot; -s $(NuGetPublishVolatileFeed) -k $(APIKEY)"
Condition="'$(PublishPackages)'=='true'" />
Condition="'$(PublishPackages)'=='true' AND '@(RepositoryNupkgs)' != ''" />

<Message Text="============ Done building $(RepositoryToBuild) ============" Importance="High" />
</Target>
Expand Down

0 comments on commit 5bcf919

Please sign in to comment.