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 =
95
95
++ ( sprintf " %s /FSharp.DependencyManager.Nuget.%s .nupkg" packagesDir release.NugetVersion)
96
96
97
97
Target.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: " )
99
101
100
102
packagesPatterns
101
103
|> Seq.iter ( fun nupkg ->
102
104
DotNet.nugetPush ( fun p -> {
103
105
p with
104
106
PushParams = { p.PushParams with
105
- ApiKey = Some apikey.Value
107
+ ApiKey = Some apikey
106
108
Source = Some " https://api.nuget.org/v3/index.json" }
107
109
}) nupkg
108
110
)
You can’t perform that action at this time.
0 commit comments