Skip to content

Commit

Permalink
use dotnet push instead of paket push to sidestep pushing issues
Browse files Browse the repository at this point in the history
  • Loading branch information
baronfel committed Feb 20, 2020
1 parent e6be390 commit e6f782b
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions fcs/build.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,12 +96,19 @@ Target.create "GenerateDocsJa" (fun _ ->
runDotnet "docsrc/tools" "fake" "run generate.ja.fsx"
)

open Fake.IO.Globbing.Operators

Target.create "PublishNuGet" (fun _ ->
let apikey = Environment.environVarOrDefault "nuget-apikey" (UserInput.getUserPassword "Nuget API Key: ")
Paket.push (fun p ->
{ p with
ApiKey = apikey
WorkingDir = releaseDir })
let apikey = lazy(Environment.environVarOrDefault "nuget-apikey" (UserInput.getUserPassword "Nuget API Key: "))
!! (sprintf "%s/*.%s.nupkg" releaseDir release.NugetVersion)
|> Seq.iter (fun nupkg ->
DotNet.nugetPush (fun p -> {
p with
PushParams = { p.PushParams with
ApiKey = Some apikey.Value
Source = Some "https://api.nuget.org/v3/index.json" }
}) nupkg
)
)

// --------------------------------------------------------------------------------------
Expand Down

0 comments on commit e6f782b

Please sign in to comment.