Skip to content

Instantly share code, notes, and snippets.

@forki
Created February 18, 2011 11:47
Show Gist options
  • Save forki/833572 to your computer and use it in GitHub Desktop.
Save forki/833572 to your computer and use it in GitHub Desktop.
Build und push nuget package
Target "BuildNuGet" (fun _ ->
let nugetDocsDir = nugetDir @@ "docs/"
let nugetLibDir = nugetDir @@ "lib/"
let nugetContentDir = nugetDir @@ "Content/"
XCopy docsDir nugetDocsDir
XCopy buildDir nugetLibDir
XCopy nugetContentSourceDir nugetContentDir
NuGet (fun p ->
{p with
Authors = authors
Project = projectName
Description = projectDescription
OutputPath = nugetDir
AccessKey = getBuildParamOrDefault "nugetkey" ""
Publish = hasBuildParam "nugetkey" }) "naturalspec.nuspec"
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment