File tree 1 file changed +7
-2
lines changed
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 _ ->
156
156
157
157
Target " PublishNuGet" ( fun _ ->
158
158
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: "
159
163
{ p with
164
+ ApiKey = apikey
160
165
WorkingDir = buildDir })
161
166
)
162
167
@@ -193,11 +198,11 @@ Target "GitHubRelease" (fun _ ->
193
198
let user =
194
199
match getBuildParam " github-user" with
195
200
| s when not ( String.IsNullOrWhiteSpace s) -> s
196
- | _ -> getUserInput " Username: "
201
+ | _ -> getUserInput " GitHub Username: "
197
202
let pw =
198
203
match getBuildParam " github-pw" with
199
204
| s when not ( String.IsNullOrWhiteSpace s) -> s
200
- | _ -> getUserPassword " Password: "
205
+ | _ -> getUserPassword " GitHub Password: "
201
206
let remote =
202
207
Git.CommandHelper.getGitResult " " " remote -v"
203
208
|> Seq.filter ( fun ( s : string ) -> s.EndsWith( " (push)" ))
You can’t perform that action at this time.
0 commit comments