File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -156,7 +156,12 @@ Target "NuGet.NetFx" (fun _ ->
156156
157157Target " PublishNuGet" ( fun _ ->
158158 Paket.Push ( fun p ->
159+ let apikey =
160+ match getBuildParam " nuget-apikey" with
161+ | s when not ( String.IsNullOrWhiteSpace s) -> s
162+ | _ -> getUserInput " Nuget API Key: "
159163 { p with
164+ ApiKey = apikey
160165 WorkingDir = buildDir })
161166)
162167
@@ -193,11 +198,11 @@ Target "GitHubRelease" (fun _ ->
193198 let user =
194199 match getBuildParam " github-user" with
195200 | s when not ( String.IsNullOrWhiteSpace s) -> s
196- | _ -> getUserInput " Username: "
201+ | _ -> getUserInput " GitHub Username: "
197202 let pw =
198203 match getBuildParam " github-pw" with
199204 | s when not ( String.IsNullOrWhiteSpace s) -> s
200- | _ -> getUserPassword " Password: "
205+ | _ -> getUserPassword " GitHub Password: "
201206 let remote =
202207 Git.CommandHelper.getGitResult " " " remote -v"
203208 |> Seq.filter ( fun ( s : string ) -> s.EndsWith( " (push)" ))
You can’t perform that action at this time.
0 commit comments