@@ -979,35 +979,22 @@ let checkFormatCode _ =
979979
980980let cleanDocsCache _ = DocsTool.cleanDocsCache ()
981981
982-
983- let buildDocs ctx =
982+ let generateSdkReferences () =
984983
985984 dotnet.tool id " fsi" " generate-sdk-references.fsx"
986985
986+ let buildDocs ctx =
987+
988+ generateSdkReferences ()
987989 let configuration = configuration ( ctx.Context.AllExecutingTargets)
988990 DocsTool.build ( string configuration)
989991
990992let watchDocs ctx =
991993
992- dotnet.tool id " fsi" " generate-sdk-references.fsx"
993-
994+ generateSdkReferences ()
994995 let configuration = configuration ( ctx.Context.AllExecutingTargets)
995996 DocsTool.watch ( string configuration)
996997
997- // let releaseDocs ctx =
998- // isReleaseBranchCheck () // Docs changes don't need a full release to the library
999-
1000- // Git.Staging.stageAll docsDir
1001- // Git.Commit.exec "" (sprintf "Documentation release of version %s" latestEntry.NuGetVersion)
1002-
1003- // if
1004- // isRelease (ctx.Context.AllExecutingTargets)
1005- // |> not
1006- // then
1007- // // We only want to push if we're only calling "ReleaseDocs" target
1008- // // If we're calling "Release" target, we'll let the "GitRelease" target do the git push
1009- // Git.Branches.push ""
1010-
1011998
1012999let initTargets () =
10131000 BuildServer.install [ GitHubActions.Installer ]
@@ -1053,7 +1040,6 @@ let initTargets () =
10531040 Target.create " CleanDocsCache" cleanDocsCache
10541041 Target.create " BuildDocs" buildDocs
10551042 Target.create " WatchDocs" watchDocs
1056- // Target.create "ReleaseDocs" releaseDocs
10571043
10581044 //-----------------------------------------------------------------------------
10591045 // Target Dependencies
@@ -1095,11 +1081,6 @@ let initTargets () =
10951081
10961082 " DotnetBuild"
10971083 ==>! " BuildDocs"
1098- // "BuildDocs"
1099- // ==>! "ReleaseDocs"
1100- // "BuildDocs" ?=>! "PublishToNuget"
1101- // "DotnetPack" ?=>! "BuildDocs"
1102- // "GenerateCoverageReport" ?=>! "ReleaseDocs"
11031084
11041085 " UpdateChangelog"
11051086 ==> " GitRelease"
@@ -1113,7 +1094,6 @@ let initTargets () =
11131094 ==> " DotnetPack"
11141095 ==> " PublishToNuGet"
11151096 ==> " GitHubRelease"
1116- // ==> "ReleaseDocs"
11171097 ==>! " Publish"
11181098
11191099 " DotnetRestore"
0 commit comments