Skip to content

Commit 5993c92

Browse files
authored
"ResleaseDocs" used "docs/output" in ProjectScaffold. Now fsi puts the results in "output" (#622)
1 parent 7a853ae commit 5993c92

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

docs/upgrade.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff 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

3444
7. Consider creating `docs\_template.fsx` and `docs\_template.ipynb` to enable co-generation of F# scripts and F# notebooks.
3545

0 commit comments

Comments
 (0)