|
3 | 3 | // --------------------------------------------------------------------------------------
|
4 | 4 |
|
5 | 5 | #r "paket: groupref FakeBuild //"
|
| 6 | +open Fake.IO |
6 | 7 |
|
7 | 8 | #load "./.fake/build.fsx/intellisense.fsx"
|
8 | 9 |
|
@@ -56,7 +57,7 @@ let testAssemblies = "tests/**/bin" </> configuration </> "**" </> "*Tests.exe"
|
56 | 57 |
|
57 | 58 | // Git configuration (used for publishing documentation in gh-pages branch)
|
58 | 59 | // The profile where the project is posted
|
59 |
| -let gitOwner = "Timo Mühlhaus" |
| 60 | +let gitOwner = "muehlhaus" |
60 | 61 | let gitHome = sprintf "%s/%s" "https://github.com" gitOwner
|
61 | 62 |
|
62 | 63 | // The name of the project on GitHub
|
@@ -374,6 +375,17 @@ Target.create "Release" (fun _ ->
|
374 | 375 | Target.create "BuildPackage" ignore
|
375 | 376 | Target.create "GenerateDocs" ignore
|
376 | 377 |
|
| 378 | +Target.create "GitReleaseNuget" (fun _ -> |
| 379 | + let tempNugetDir = "temp/nuget" |
| 380 | + Shell.cleanDir tempNugetDir |> ignore |
| 381 | + Git.Repository.cloneSingleBranch "" (gitHome + "/" + gitName + ".git") "nuget" tempNugetDir |
| 382 | + let files = Directory.EnumerateFiles bin |
| 383 | + Shell.copy tempNugetDir files |
| 384 | + Git.Staging.stageAll tempNugetDir |
| 385 | + Git.Commit.exec tempNugetDir (sprintf "Update git nuget packages for version %s" release.NugetVersion) |
| 386 | + Git.Branches.push tempNugetDir |
| 387 | +) |
| 388 | + |
377 | 389 | // --------------------------------------------------------------------------------------
|
378 | 390 | // Run all targets by default. Invoke 'build <Target>' to override
|
379 | 391 |
|
@@ -403,4 +415,8 @@ Target.create "All" ignore
|
403 | 415 | ==> "PublishNuget"
|
404 | 416 | ==> "Release"
|
405 | 417 |
|
| 418 | + |
| 419 | +"BuildPackage" |
| 420 | + ==> "GitReleaseNuget" |
| 421 | + |
406 | 422 | Target.runOrDefault "All"
|
0 commit comments