Skip to content

Commit 692f3b0

Browse files
committed
Add publish URL
1 parent bd34e6c commit 692f3b0

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

build/Build.fs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,8 @@ let mutable latestEntry =
9696

9797
let mutable changelogBackupFilename = ""
9898

99+
let publishUrl = "https://www.nuget.org"
100+
99101
let enableCodeCoverage = environVarAsBoolOrDefault "ENABLE_COVERAGE" true
100102

101103
let githubToken = Environment.environVarOrNone "GITHUB_TOKEN"
@@ -459,7 +461,10 @@ let publishToNuget _ =
459461
| None -> failwith "missing nugetToken"
460462
| _ -> ()
461463

462-
let setNugetPushParams (c: NuGet.NuGet.NuGetPushParams) = { c with ApiKey = nugetToken }
464+
let setNugetPushParams (c: NuGet.NuGet.NuGetPushParams) =
465+
{ c with
466+
ApiKey = nugetToken
467+
Source = Some(publishUrl) }
463468

464469
!!distGlob
465470
|> Seq.iter (

0 commit comments

Comments
 (0)