Skip to content

Commit

Permalink
setup email/name on release
Browse files Browse the repository at this point in the history
  • Loading branch information
matthid committed May 12, 2018
1 parent 2a8d08c commit 617e5c3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions build.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -1285,6 +1285,9 @@ Target.create "ReleaseDocs" (fun _ ->
Shell.copyRecursive "docs" "gh-pages" true |> printfn "%A"
Shell.copyFile "gh-pages" "./Samples/FAKE-Calculator.zip"
Git.Staging.stageAll "gh-pages"
if not BuildServer.isLocalBuild then
Git.CommandHelper.directRunGitCommandAndFail "gh-pages" "config user.email matthi.d@gmail.com"
Git.CommandHelper.directRunGitCommandAndFail "gh-pages" "config user.name \"Matthias Dittrich\""
Git.Commit.exec "gh-pages" (sprintf "Update generated documentation %s" nugetVersion)
Git.Branches.pushBranch "gh-pages" url "gh-pages"
)
Expand All @@ -1300,6 +1303,9 @@ Target.create "FastRelease" (fun _ ->
let url = Environment.environVarOrDefault "fake_git_url" (sprintf "https://%sgh.neting.cc/fsharp/FAKE.git" auth)

let gitDirectory = Environment.environVarOrDefault "git_directory" ""
if not BuildServer.isLocalBuild then
Git.CommandHelper.directRunGitCommandAndFail gitDirectory "config user.email matthi.d@gmail.com"
Git.CommandHelper.directRunGitCommandAndFail gitDirectory "config user.name \"Matthias Dittrich\""
if gitDirectory <> "" && BuildServer.buildServer = BuildServer.TeamFoundation then
Trace.trace "Prepare git directory"
Git.Branches.checkout gitDirectory false TeamFoundation.Environment.BuildSourceVersion
Expand Down

0 comments on commit 617e5c3

Please sign in to comment.