Skip to content

Commit efc3f45

Browse files
committed
[Build] Don't let the build push the nuget packages
1 parent 23e93db commit efc3f45

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

Build/SharpDX.build

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,7 @@
4747
<Message Importance="High" Text="Building SharpDX $(SharpDXAssemblyVersion)"/>
4848
<CallTarget Targets="Build"/>
4949
<CallTarget Targets="ZipBuild"/>
50-
<CallTarget Condition="'$(SharpDXNugetPush)' == 'true'" Targets="NugetAndPush"/>
51-
</Target>
52-
53-
<Target Name="NugetAndPush">
54-
<CallTarget Targets="Nuget"/>
55-
<CallTarget Targets="NugetPush"/>
50+
<CallTarget Condition="'$(SharpDXNugetPush)' == 'true'" Targets="Nuget"/>
5651
</Target>
5752

5853
<Target Name="Build">
@@ -71,14 +66,6 @@
7166
<Exec Command="nuget.exe pack -OutputDirectory $(SharpDXNugetPackageDir) -Properties version=$(SharpDXAssemblyVersion) -Symbols %(SharpDXNuspecs.Identity)"/>
7267
</Target>
7368

74-
<Target Name="NugetPush">
75-
<ItemGroup>
76-
<SharpDXNupkg Include="$(SharpDXNugetPackageDir)\*.nupkg"/>
77-
</ItemGroup>
78-
<Error Condition="'$(SharpDXNugetApiKey)' == ''" Text="SharpDXNugetApiKey env variable is required when pushing nuget package"/>
79-
<Exec Command="nuget.exe push -ApiKey $(SharpDXNugetApiKey) %(SharpDXNupkg.Identity)"/>
80-
</Target>
81-
8269
<Target Name="ZipBuild">
8370
<Delete Files="$(SharpDXZipName)"/>
8471
<Exec WorkingDirectory="$(SharpDXRepo)" Command='$(SharpDXRepo)\External\7-Zip\7z.exe a -sfx7z.sfx -xr!External -xr!*.check -xr!*.pdb -xr!*.lib -xr!*.pri -xr!*.exp $(SharpDXZipName) Bin\*\*.* License.txt ReleaseNotes.md Readme.md'/>

0 commit comments

Comments
 (0)