File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 7373 <PackageReference Include =" GitVersionTask" Version =" 5.3.7" PrivateAssets =" All" />
7474 </ItemGroup >
7575
76- <Target Name =" PublishToNugetWithAPIKey" AfterTargets =" GenerateNuspec" Condition = " Exists('$(SolutionDir)\..\..\nugetapikey.txt') " >
77- <ReadLinesFromFile File =" $(SolutionDir)\..\..\nugetapikey.txt" >
78- <Output TaskParameter =" Lines" PropertyName =" NugetAPIKey" />
79- </ReadLinesFromFile >
80- <Exec WorkingDirectory =" $(BaseDir)" Command =" dotnet nuget push $(PackageOutputAbsolutePath)$(PackageId).$(PackageVersion).nupkg -k $(NugetAPIKey) -s https://api.nuget.org/v3/index.json" />
81- </Target >
76+ <Target Name =" PublishToNugetWithAPIKey" AfterTargets =" GenerateNuspec" >
77+ <ReadLinesFromFile Condition = " Exists('$(SolutionDir)\..\..\nugetapikey.txt') " File =" $(SolutionDir)\..\..\nugetapikey.txt" >
78+ <Output TaskParameter =" Lines" PropertyName =" NugetAPIKey" />
79+ </ReadLinesFromFile >
80+ <Exec Condition = " ('$(NugetAPIKey)' != '') " WorkingDirectory =" $(BaseDir)" Command =" dotnet nuget push $(PackageOutputAbsolutePath)$(PackageId).$(PackageVersion).nupkg -k $(NugetAPIKey) -s https://api.nuget.org/v3/index.json" />
81+ </Target >
8282
8383 <Target Name =" FixOnGitVersionTaskError" BeforeTargets =" GetAssemblyVersion" >
8484 <CreateProperty Value =" 0.0.1-notgitversion" Condition =" '$(GitVersion_NuGetVersion)' == ''" >
You can’t perform that action at this time.
0 commit comments