mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-22 17:47:53 +00:00
Add MSBuild targets to enable pushing to NuGet feed
This commit is contained in:
15
build/Push.targets
Normal file
15
build/Push.targets
Normal file
@@ -0,0 +1,15 @@
|
||||
<Project>
|
||||
<Target Name="Push" DependsOnTargets="_PushNuGet" />
|
||||
|
||||
<ItemGroup>
|
||||
<PackagesToPush Include="$(BuildDir)*.nupkg" />
|
||||
</ItemGroup>
|
||||
|
||||
<Target Name="_PushNuGet" Condition="@(PackagesToPush->Count()) != 0">
|
||||
<Error Text="Missing required property: NuGetPublishFeed" Condition=" '$(NuGetPublishFeed)' == '' "/>
|
||||
<PushNuGetPackages
|
||||
Packages="@(PackagesToPush)"
|
||||
Feed="$(NuGetPublishFeed)"
|
||||
ApiKey="$(APIKey)" />
|
||||
</Target>
|
||||
</Project>
|
||||
3
build/repo.targets
Normal file
3
build/repo.targets
Normal file
@@ -0,0 +1,3 @@
|
||||
<Project>
|
||||
<Import Project="Push.targets" />
|
||||
</Project>
|
||||
Reference in New Issue
Block a user