Skip to content

Commit ba8572a

Browse files
committed
Add Git release nuget
1 parent 5b67593 commit ba8572a

File tree

3 files changed

+17
-1
lines changed

3 files changed

+17
-1
lines changed

build.fsx

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
// --------------------------------------------------------------------------------------
44

55
#r "paket: groupref FakeBuild //"
6+
open Fake.IO
67

78
#load "./.fake/build.fsx/intellisense.fsx"
89

@@ -56,7 +57,7 @@ let testAssemblies = "tests/**/bin" </> configuration </> "**" </> "*Tests.exe"
5657

5758
// Git configuration (used for publishing documentation in gh-pages branch)
5859
// The profile where the project is posted
59-
let gitOwner = "Timo Mühlhaus"
60+
let gitOwner = "muehlhaus"
6061
let gitHome = sprintf "%s/%s" "https://github.com" gitOwner
6162

6263
// The name of the project on GitHub
@@ -374,6 +375,17 @@ Target.create "Release" (fun _ ->
374375
Target.create "BuildPackage" ignore
375376
Target.create "GenerateDocs" ignore
376377

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+
377389
// --------------------------------------------------------------------------------------
378390
// Run all targets by default. Invoke 'build <Target>' to override
379391

@@ -403,4 +415,8 @@ Target.create "All" ignore
403415
==> "PublishNuget"
404416
==> "Release"
405417

418+
419+
"BuildPackage"
420+
==> "GitReleaseNuget"
421+
406422
Target.runOrDefault "All"

temp/nuget/FSharp.Plotly.1.1.1.nupkg

-3.11 MB
Binary file not shown.
-3.11 MB
Binary file not shown.

0 commit comments

Comments
 (0)