Skip to content

Commit 1b54b70

Browse files
author
Jimmy Byrd
committed
registers nuget token as secret in fake
this will hide it from FAKEs tracing output
1 parent 1911a3d commit 1b54b70

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

build.fsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,9 @@ let docsSiteBaseUrl = sprintf "https://%s.github.io/%s" gitOwner gitRepoName
8888

8989
let disableCodeCoverage = environVarAsBoolOrDefault "DISABLE_COVERAGE" true
9090

91+
let nugetApiKey = Environment.environVar "BD_NUGET_TOKEN"
92+
TraceSecrets.register "BD_NUGET_TOKEN" nugetApiKey
93+
9194
//-----------------------------------------------------------------------------
9295
// Helpers
9396
//-----------------------------------------------------------------------------
@@ -420,12 +423,11 @@ let dotnetPack ctx =
420423
)
421424

422425

423-
424426
let publishToNuget _ =
425427
isReleaseBranchCheck ()
426428
Paket.push(fun c ->
427429
{ c with
428-
ApiKey = Environment.environVar "BD_NUGET_TOKEN"
430+
ApiKey = nugetApiKey
429431
ToolType = ToolType.CreateLocalTool()
430432
PublishUrl = publishUrl
431433
WorkingDir = "dist"

0 commit comments

Comments
 (0)