Skip to content

Commit 697cbd2

Browse files
committed
Don't re-restore packages when publishing
1 parent fbe01a8 commit 697cbd2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build/build.proj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@
105105

106106
<!-- The publish targets don't depend upon Package because of how they are used on the CI server. At this point the code has been packaged and all that needs
107107
to happen is to publish the artifact. -->
108-
<Target Name="PublishNuGet" DependsOnTargets="RestorePackages">
108+
<Target Name="PublishNuGet">
109109
<Exec Command="@powershell -NoProfile -ExecutionPolicy unrestricted -File check-nuget-version-exists.ps1 $(Version)" ConsoleToMSBuild="true">
110110
<Output TaskParameter="ConsoleOutput" PropertyName="ShouldPublishToNuGet" />
111111
</Exec>
@@ -117,7 +117,7 @@
117117
Condition=" '$(ShouldPublishToNuGet)' == 'True' " />
118118
</Target>
119119

120-
<Target Name="PublishMyGet" DependsOnTargets="RestorePackages">
120+
<Target Name="PublishMyGet">
121121
<!-- We don't need to check for existing versions because MyGet lets you overwrite -->
122122
<!-- The environment variable BAMBOO_MYGET_PASSWORD comes from the nuget.password variable defined on the openstack.net plan in Bamboo -->
123123
<Exec Command="$(NuGet) push ..\artifacts\packages\openstack.net.$(Version).nupkg %25BAMBOO_MYGET_PASSWORD%25 -Source https://www.myget.org/F/openstacknetsdk/api/v2"/>

0 commit comments

Comments
 (0)