anchor.diff:      paketDependencies.Pack("bin", version = tag, releaseNotes = releaseNotes)
   )
   
  -Target "Push" (fun () ->
  +
  +let push url =
       let packages = !!"bin/*.nupkg"
       let packageNameRx = Regex @"(?<name>[a-zA-Z_0-9\.]+?)\.(?<version>([0-9]+\.)*[0-9]+)\.nupkg"
       let tag = Fake.Git.Information.getLastTag()
  
positive.code:     try
          for id in myPackages do
              let source = sprintf "bin/%s.%s.nupkg" id tag
              let target = sprintf @"\\hobel.ra1.vrvis.lan\NuGet\%s.%s.nupkg" id tag
              File.Copy(source, target, true)
      with e ->
          traceError (string e)
  )
  
  Target "Deploy" (fun () ->
  
      let packages = !!"bin/*.nupkg"
      let packageNameRx = Regex @"(?<name>[a-zA-Z_0-9\.]+?)\.(?<version>([0-9]+\.)*[0-9]+)\.nupkg"
  
negative.code:             )
              |> Set.ofSeq
  
     
      let accessKey =
          match keyName with
           | Some keyName -> 
              let accessKeyPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), ".ssh", keyName)
              if File.Exists accessKeyPath then 
                  let r = Some (File.ReadAllText accessKeyPath)
                  tracefn "key: %A" r.Value
                  r
              else None
           | None -> None
  
  
      let branch = Fake.Git.Information.getBranchName "."
      let releaseNotes = Fake.Git.Information.getCurrentHash()
      if branch <> "master" then
          tracefn "are you really sure you want do deploy a non-master branch? (Y/N)"
          let l = Console.ReadLine().Trim().ToLower()
          if l = "y"
          then
              let tag = Fake.Git.Information.getLastTag()
              match accessKey with
                  | Some accessKey ->
                      try
                          for id in myPackages do
                              let packageName = sprintf "bin/%s.%s.nupkg" id tag
                              tracefn "pushing: %s" packageName
                              Paket.Dependencies.Push(packageName, 
                                                      apiKey = accessKey,
                                                      url = url,
                                                      endPoint = endPoint )
                      with e ->
                          traceError (string e)
                  | None ->
                      traceError (sprintf "Could not find nuget access key")
           else 
              traceError (sprintf "cannot deploy branch: %A" branch)
  
  
  Target "Deploy" (fun () -> 
      deploy "https://www.nuget.org/api/v2" "/api/v2/package" (Some "nuget.key")
  )
  Target "MyGetDeploy" (fun () -> 
      deploy "https://vrvis.myget.org/" "/F/aardvark/api/v2/package" (Some "myget.key")
  )
  
  
  "Compile" ==> "CreatePackage"
  