diff --git a/Octokit.Reactive.nuspec b/Octokit.Reactive.nuspec index 54781402..5dc3119d 100644 --- a/Octokit.Reactive.nuspec +++ b/Octokit.Reactive.nuspec @@ -1,21 +1,19 @@ - - - - Octokit.Reactive - 0.1.1 - GitHub - GitHub + + + + @project@ + @build.number@ + @authors@ + @authors@ + @summary@ https://github.com/octokit/octokit.net/blob/master/LICENSE.txt https://github.com/octokit/octokit.net https://f.cloud.github.com/assets/19977/1441274/160fba8c-41a9-11e3-831d-61d88fa886f4.png false - An IObservable based GitHub API client library for .NET using Reactive Extensions + @description@ Initial release. Copyright GitHub 2013 GitHub API Octokit - - - - + @dependencies@ \ No newline at end of file diff --git a/build.fsx b/build.fsx index a81cee45..90f49b3c 100644 --- a/build.fsx +++ b/build.fsx @@ -6,11 +6,17 @@ let authors = ["GitHub"] let projectDescription = "An async-based GitHub API client library for .NET" let projectSummary = projectDescription // TODO: write a summary +let reactiveProjectName = "Octokit.Reactive" +let reactiveProjectDescription = "An IObservable based GitHub API client library for .NET using Reactive Extensions" +let reactiveProjectSummary = reactiveProjectDescription // TODO: write a summary + let buildDir = "./Octokit/bin" let reactiveBuildDir = "./Octokit.Reactive/bin" let packageDir = "./packaging/octokit/" let reactivePackageDir = "./packaging/octokit/reactive" +let version = "0.1.1" // TODO: Retrieve this from release notes or CI + Target "Clean" (fun _ -> CleanDirs [buildDir; reactiveBuildDir; packageDir; reactivePackageDir] ) @@ -37,6 +43,7 @@ Target "CreateOctokitPackage" (fun _ -> OutputPath = "./packaging/" Summary = projectSummary WorkingDir = packageDir + Version = version AccessKey = getBuildParamOrDefault "nugetkey" "" Publish = hasBuildParam "nugetkey" }) "octokit.nuspec" ) @@ -47,6 +54,21 @@ Target "CreateOctokitReactivePackage" (fun _ -> CopyFile net45Dir (reactiveBuildDir @@ "Release/Net40/Octokit.Reactive.dll") // TODO: this a bug in the sln?! CopyFiles packageDir ["LICENSE.txt"; "README.md"] + + NuGet (fun p -> + {p with + Authors = authors + Project = reactiveProjectName + Description = reactiveProjectDescription + OutputPath = "./packaging/" + Summary = reactiveProjectSummary + WorkingDir = reactivePackageDir + Version = version + Dependencies = + ["Octokit", RequireExactly (NormalizeVersion version) + "Rx-Main", RequireExactly "2.1.30214"] // TODO: Retrieve this from the referenced package + AccessKey = getBuildParamOrDefault "nugetkey" "" + Publish = hasBuildParam "nugetkey" }) "Octokit.Reactive.nuspec" ) Target "Default" DoNothing