Skip to content

Commit 7b6583f

Browse files
committed
fixup! feat: release automation with FAKE and minimal documentation (#5)
1 parent 86a9dc6 commit 7b6583f

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

build/build.fs

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,19 @@ let dotnetRestore _ =
269269
)
270270
|> Seq.iter (retryIfInCI 10)
271271

272+
let dotnetToolRestore _ =
273+
let result =
274+
fun () ->
275+
DotNet.exec
276+
id
277+
"tool"
278+
"restore"
279+
|> (retryIfInCI 10)
280+
281+
282+
if not result.OK then
283+
failwithf "Failed to restore .NET tools: %A" result.Errors
284+
272285
let updateChangelog ctx =
273286
latestEntry <-
274287
if not <| isPublishToGitHub ctx then
@@ -614,6 +627,7 @@ let initTargets (ctx : Context.FakeExecutionContext) =
614627

615628
Target.create "Clean" clean
616629
Target.create "DotnetRestore" dotnetRestore
630+
Target.create "DotnetToolRestore" dotnetToolRestore
617631
Target.create "UpdateChangelog" updateChangelog
618632
Target.createBuildFailure "RevertChangelog" revertChangelog // Do NOT put this in the dependency chain
619633
Target.createFinal "DeleteChangelogBackupFile" deleteChangelogBackupFile // Do NOT put this in the dependency chain
@@ -696,6 +710,11 @@ let initTargets (ctx : Context.FakeExecutionContext) =
696710

697711
"DotnetRestore" ==>! "WatchTests"
698712

713+
//"DotnetToolRestore" ?=>! "DotnetRestore"
714+
"DotnetToolRestore" ==>! "BuildDocs"
715+
"DotnetToolRestore" ?=>! "CheckFormatCode"
716+
"DotnetToolRestore" ?=>! "FormatCode"
717+
699718
//-----------------------------------------------------------------------------
700719
// Target Start
701720
//-----------------------------------------------------------------------------

0 commit comments

Comments
 (0)