anchor.diff:          }
       )
   
  -
  -let isReleaseBranchCheck () =
  -    let releaseBranch = "master"
  -    if Git.Information.getBranchName "" <> releaseBranch then failwithf "Not on %s.  If you want to release please switch to this branch." releaseBranch
  -
  -
  -Target.create "GitRelease" <| fun _ ->
  +let ``git release`` _ =
       isReleaseBranchCheck ()
   
       let releaseNotesGitCommitFormat = release.Notes |> Seq.map(sprintf "* %s\n") |> String.concat ""
  
positive.code:                         (Some(args))
              }) dir)
  
  
  Target.create "DotnetPack" <| fun _ ->
      !! srcGlob
      |> Seq.iter (fun proj ->
          let args =
  
negative.code:     Git.Branches.tag "" release.NugetVersion
      Git.Branches.pushTag "" "origin" release.NugetVersion
  
  let ``github release`` _ =
      let token =
          match Environment.environVarOrDefault "GITHUB_TOKEN" "" with
          | s when not (String.IsNullOrWhiteSpace s) -> s
          | _ -> failwith "please set the github_token environment variable to a github personal access token with repro access."
  
      let files = !! distGlob
  
      GitHub.createClientWithToken token
      |> GitHub.draftNewRelease gitOwner gitRepoName release.NugetVersion (release.SemVer.PreRelease <> None) release.Notes
      |> GitHub.uploadFiles files
      |> GitHub.publishDraft
      |> Async.RunSynchronously
  
  //-----------------------------------------------------------------------------
  // Target Declaration
  //-----------------------------------------------------------------------------
  
  Target.create "Clean" clean
  Target.create "DotnetRestore" ``dotnet restore``
  Target.create "DotnetPack" ``dotnet pack``
  Target.create "IntegrationTests" ``integration tests``
  Target.create "Publish" publish
  Target.create "GitRelease" ``git release``
  Target.create "GitHubRelease" ``github release``
  Target.create "Release" ignore
  
  //-----------------------------------------------------------------------------
  // Target Dependencies
  //-----------------------------------------------------------------------------
  
  "Clean"
    ==> "DotnetRestore"
  