Skip to content

Commit e6f782b

Browse files
committed
use dotnet push instead of paket push to sidestep pushing issues
1 parent e6be390 commit e6f782b

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

fcs/build.fsx

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -96,12 +96,19 @@ Target.create "GenerateDocsJa" (fun _ ->
9696
runDotnet "docsrc/tools" "fake" "run generate.ja.fsx"
9797
)
9898

99+
open Fake.IO.Globbing.Operators
100+
99101
Target.create "PublishNuGet" (fun _ ->
100-
let apikey = Environment.environVarOrDefault "nuget-apikey" (UserInput.getUserPassword "Nuget API Key: ")
101-
Paket.push (fun p ->
102-
{ p with
103-
ApiKey = apikey
104-
WorkingDir = releaseDir })
102+
let apikey = lazy(Environment.environVarOrDefault "nuget-apikey" (UserInput.getUserPassword "Nuget API Key: "))
103+
!! (sprintf "%s/*.%s.nupkg" releaseDir release.NugetVersion)
104+
|> Seq.iter (fun nupkg ->
105+
DotNet.nugetPush (fun p -> {
106+
p with
107+
PushParams = { p.PushParams with
108+
ApiKey = Some apikey.Value
109+
Source = Some "https://api.nuget.org/v3/index.json" }
110+
}) nupkg
111+
)
105112
)
106113

107114
// --------------------------------------------------------------------------------------

0 commit comments

Comments
 (0)