Skip to content

Commit

Permalink
Cleanup buildscript
Browse files Browse the repository at this point in the history
  • Loading branch information
TheAngryByrd committed Apr 3, 2023
1 parent 8cc8020 commit 8ea3773
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 25 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -274,3 +274,4 @@ tmp/
temp/
.fsdocs
runtime-scripts/
docs/
30 changes: 5 additions & 25 deletions build/build.fs
Original file line number Diff line number Diff line change
Expand Up @@ -979,35 +979,22 @@ let checkFormatCode _ =

let cleanDocsCache _ = DocsTool.cleanDocsCache ()


let buildDocs ctx =
let generateSdkReferences () =

dotnet.tool id "fsi" "generate-sdk-references.fsx"

let buildDocs ctx =

generateSdkReferences ()
let configuration = configuration (ctx.Context.AllExecutingTargets)
DocsTool.build (string configuration)

let watchDocs ctx =

dotnet.tool id "fsi" "generate-sdk-references.fsx"

generateSdkReferences ()
let configuration = configuration (ctx.Context.AllExecutingTargets)
DocsTool.watch (string configuration)

// let releaseDocs ctx =
// isReleaseBranchCheck () // Docs changes don't need a full release to the library

// Git.Staging.stageAll docsDir
// Git.Commit.exec "" (sprintf "Documentation release of version %s" latestEntry.NuGetVersion)

// if
// isRelease (ctx.Context.AllExecutingTargets)
// |> not
// then
// // We only want to push if we're only calling "ReleaseDocs" target
// // If we're calling "Release" target, we'll let the "GitRelease" target do the git push
// Git.Branches.push ""


let initTargets () =
BuildServer.install [ GitHubActions.Installer ]
Expand Down Expand Up @@ -1053,7 +1040,6 @@ let initTargets () =
Target.create "CleanDocsCache" cleanDocsCache
Target.create "BuildDocs" buildDocs
Target.create "WatchDocs" watchDocs
// Target.create "ReleaseDocs" releaseDocs

//-----------------------------------------------------------------------------
// Target Dependencies
Expand Down Expand Up @@ -1095,11 +1081,6 @@ let initTargets () =

"DotnetBuild"
==>! "BuildDocs"
// "BuildDocs"
// ==>! "ReleaseDocs"
// "BuildDocs" ?=>! "PublishToNuget"
// "DotnetPack" ?=>! "BuildDocs"
// "GenerateCoverageReport" ?=>! "ReleaseDocs"

"UpdateChangelog"
==> "GitRelease"
Expand All @@ -1113,7 +1094,6 @@ let initTargets () =
==> "DotnetPack"
==> "PublishToNuGet"
==> "GitHubRelease"
// ==> "ReleaseDocs"
==>! "Publish"

"DotnetRestore"
Expand Down

0 comments on commit 8ea3773

Please sign in to comment.