File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,10 @@ let githubToken = Environment.environVarOrNone "GITHUB_TOKEN"
28
28
Option.iter( TraceSecrets.register " <GITHUB_TOKEN>" )
29
29
30
30
31
+ let nugetToken = Environment.environVarOrNone " FSTOOLKIT_NUGET_TOKEN"
32
+ Option.iter( TraceSecrets.register " <FSTOOLKIT_NUGET_TOKEN>" )
33
+
34
+
31
35
Target.create " Clean" ( fun _ ->
32
36
!! " bin"
33
37
++ " src/**/bin"
@@ -154,7 +158,13 @@ Target.create "PublishNuget" (fun _ ->
154
158
{ p with
155
159
ToolType = ToolType.CreateLocalTool()
156
160
PublishUrl = " https://www.nuget.org"
157
- WorkingDir = distDir })
161
+ WorkingDir = distDir
162
+ ApiKey =
163
+ match nugetToken with
164
+ | Some s -> s
165
+ | _ -> c.ApiKey // assume paket-config was set properly
166
+ }
167
+ )
158
168
)
159
169
160
170
let remote = Environment.environVarOrDefault " FSTK_GIT_REMOTE" " origin"
You can’t perform that action at this time.
0 commit comments