File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,16 @@ Here are the typical steps to upgrade a repo based on `ProjectScaffold` to use `
3030 Shell.cleanDir ".fsdocs"
3131 DotNet.exec id "fsdocs" "build --clean" |> ignore
3232 )
33+
34+ Target.create "ReleaseDocs" (fun _ ->
35+ Git.Repository.clone "" projectRepo "temp/gh-pages"
36+ Git.Branches.checkoutBranch "temp/gh-pages" "gh-pages"
37+ Shell.copyRecursive "output" "temp/gh-pages" true |> printfn "%A"
38+ Git.CommandHelper.runSimpleGitCommand "temp/gh-pages" "add ." |> printfn "%s"
39+ let cmd = sprintf """commit -a -m "Update generated documentation for version %s""" release.NugetVersion
40+ Git.CommandHelper.runSimpleGitCommand "temp/gh-pages" cmd |> printfn "%s"
41+ Git.Branches.push "temp/gh-pages"
42+ )
3343
34447 . Consider creating ` docs\_template.fsx ` and ` docs\_template.ipynb ` to enable co-generation of F# scripts and F# notebooks.
3545
You can’t perform that action at this time.
0 commit comments