From af4e82a3af95b313e1cd8fb7138d2cda5ca04427 Mon Sep 17 00:00:00 2001 From: Jimmy Byrd Date: Mon, 16 Oct 2023 10:10:56 -0400 Subject: [PATCH] allow fstknugetoken --- build/build.fs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/build/build.fs b/build/build.fs index 6adf215c..a92dc88f 100644 --- a/build/build.fs +++ b/build/build.fs @@ -64,7 +64,9 @@ let distGlob = let githubToken = Environment.environVarOrNone "GITHUB_TOKEN" -let nugetToken = Environment.environVarOrNone "NUGET_TOKEN" +let nugetToken = + Environment.environVarOrNone "NUGET_TOKEN" + |> Option.orElseWith (fun () -> Environment.environVarOrNone "FSTK_NUGET_TOKEN") let failOnBadExitAndPrint (p: ProcessResult) = @@ -300,6 +302,7 @@ let initTargets () = Option.iter (TraceSecrets.register "") githubToken Option.iter (TraceSecrets.register "") nugetToken + Option.iter (TraceSecrets.register "") nugetToken Target.create "Clean" clean