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

Commit

Permalink
minor clean of build script
Browse files Browse the repository at this point in the history
  • Loading branch information
pblasucci committed Jul 17, 2016
1 parent 9e27f7a commit 6080468
Showing 1 changed file with 3 additions and 43 deletions.
46 changes: 3 additions & 43 deletions build.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -213,14 +213,6 @@ 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 All @@ -231,24 +223,6 @@ Target "ReleaseDocs" (fun _ ->
Git.Commit.Commit tempDocsDir (sprintf "Update generated documentation for version %s" release.NugetVersion)
Branches.push tempDocsDir)

#load "paket-files/fsharp/FAKE/modules/Octokit/Octokit.fsx"
open Octokit

Target "Release" (fun _ ->
StageAll ""
Git.Commit.Commit "" (sprintf "Bump version to %s" release.NugetVersion)
Branches.push ""

Branches.tag "" release.NugetVersion
Branches.pushTag "" "origin" release.NugetVersion

// release on github
createClient (getBuildParamOrDefault "github-user" "") (getBuildParamOrDefault "github-pw" "")
|> createDraft gitOwner gitName release.NugetVersion (release.SemVer.PreRelease <> None) release.Notes
//TODO: |> uploadFile ("bin/fszmq-" + release.NugetVersion + ".zip")
|> releaseDraft
|> Async.RunSynchronously)

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

Expand All @@ -259,38 +233,24 @@ Target "All" DoNothing
==> "Build"
==> "CopyBinaries"
==> "RunTests"
==> "GenerateDocs"
==> "All"
=?> ("ReleaseDocs",isLocalBuild)

"All"
==> "Archive"
==> "NuGet"
==> "BuildPackage"

"CleanDocs"
"CopyBinaries"
==> "CleanDocs"
==> "GenerateHelp"
==> "GenerateRefDocs"
==> "GenerateDocs"
=?> ("ReleaseDocs",isLocalBuild)

"CopyBinaries"
==> "CleanDocs"
==> "GenerateHelpLocal"
==> "GenerateRefDocsLocal"
==> "GenerateDocsLocal"

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

"ReleaseDocs"
==> "Release"

"BuildPackage"
==> "Release"

RunTargetOrDefault "All"

0 comments on commit 6080468

Please sign in to comment.