Skip to content
This repository has been archived by the owner on Feb 10, 2021. It is now read-only.

Commit

Permalink
added advisory to build script
Browse files Browse the repository at this point in the history
  • Loading branch information
pblasucci committed Jul 11, 2015
1 parent 04bd5c9 commit d79211a
Showing 1 changed file with 18 additions and 7 deletions.
25 changes: 18 additions & 7 deletions build.fsx
Expand Up @@ -158,6 +158,7 @@ Target "RunTests" (fun _ ->

// --------------------------------------------------------------------------------------
// Build a deployment artifacts

Target "Archive" (fun _ ->
let rootDir = "temp/fszmq-" + release.NugetVersion
let winDir = rootDir + "/WIN"
Expand All @@ -182,10 +183,7 @@ Target "NuGet" (fun _ ->
Version = release.NugetVersion
ReleaseNotes = toLines release.Notes}))

Target "PublishNuget" (fun _ ->
Paket.Push(fun p ->
{ p with
WorkingDir = "bin" }))
Target "BuildPackage" DoNothing

// --------------------------------------------------------------------------------------
// Generate the documentation
Expand Down Expand Up @@ -215,6 +213,14 @@ Target "GenerateDocsLocal" DoNothing
// --------------------------------------------------------------------------------------
// Release Scripts

(****************************************************************************************
**
** !!! WARNING !!!
**
** Please be extremely careful with the following targets -- especially in a forked repo!
**
****************************************************************************************)

Target "ReleaseDocs" (fun _ ->
let tempDocsDir = "temp/gh-pages"
CleanDir tempDocsDir
Expand Down Expand Up @@ -243,8 +249,6 @@ Target "Release" (fun _ ->
|> releaseDraft
|> Async.RunSynchronously)

Target "BuildPackage" DoNothing

// --------------------------------------------------------------------------------------
// Run all targets by default. Invoke 'build <Target>' to override

Expand Down Expand Up @@ -275,11 +279,18 @@ Target "All" DoNothing
==> "GenerateRefDocsLocal"
==> "GenerateDocsLocal"

(****************************************************************************************
**
** !!! WARNING !!!
**
** Please be extremely careful with the following targets -- especially in a forked repo!
**
****************************************************************************************)

"ReleaseDocs"
==> "Release"

"BuildPackage"
==> "PublishNuget"
==> "Release"

RunTargetOrDefault "All"

0 comments on commit d79211a

Please sign in to comment.