File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -95,14 +95,16 @@ let packagesPatterns =
9595 ++ ( sprintf " %s /FSharp.DependencyManager.Nuget.%s .nupkg" packagesDir release.NugetVersion)
9696
9797Target.create " PublishNuGet" ( fun _ ->
98- let apikey = lazy ( Environment.environVarOrDefault " NUGET_APIKEY" ( UserInput.getUserPassword " Nuget API Key: " ))
98+ let apikey =
99+ Environment.environVarOrNone " NUGET_APIKEY"
100+ |> Option.defaultWith ( fun _ -> UserInput.getUserPassword " Nuget API Key: " )
99101
100102 packagesPatterns
101103 |> Seq.iter ( fun nupkg ->
102104 DotNet.nugetPush ( fun p -> {
103105 p with
104106 PushParams = { p.PushParams with
105- ApiKey = Some apikey.Value
107+ ApiKey = Some apikey
106108 Source = Some " https://api.nuget.org/v3/index.json" }
107109 }) nupkg
108110 )
You can’t perform that action at this time.
0 commit comments