Skip to content

Commit

Permalink
Bump version to 5.0.0-alpha012
Browse files Browse the repository at this point in the history
  • Loading branch information
matthid committed Jul 25, 2017
1 parent 40b2e0c commit b323aef
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
32 changes: 16 additions & 16 deletions build.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -972,17 +972,19 @@ Target "DotnetCoreCreateDebianPackage" (fun _ ->

)

Target "DotnetCorePushNuGet" (fun _ ->
let nuget_exe = Directory.GetCurrentDirectory() </> "packages" </> "build" </> "NuGet.CommandLine" </> "tools" </> "NuGet.exe"
let apikey = environVarOrDefault "nugetkey" ""
let nugetsource = environVarOrDefault "nugetsource" "https://www.nuget.org/api/v2/package"
let nugetPush nugetpackage =
if not <| System.String.IsNullOrEmpty apikey then
ExecProcess (fun info ->
info.FileName <- nuget_exe
info.Arguments <- sprintf "push %s %s -Source %s" (toParam nugetpackage) (toParam apikey) (toParam nugetsource)) (System.TimeSpan.FromMinutes 5.)
|> (fun r -> if r <> 0 then failwithf "failed to push package %s" nugetpackage)
let nuget_exe = Directory.GetCurrentDirectory() </> "packages" </> "build" </> "NuGet.CommandLine" </> "tools" </> "NuGet.exe"
let apikey = environVarOrDefault "nugetkey" ""
let nugetsource = environVarOrDefault "nugetsource" "https://www.nuget.org/api/v2/package"
let nugetPush nugetpackage =
if not <| System.String.IsNullOrEmpty apikey then
ExecProcess (fun info ->
info.FileName <- nuget_exe
info.Arguments <- sprintf "push %s %s -Source %s" (toParam nugetpackage) (toParam apikey) (toParam nugetsource))
(System.TimeSpan.FromMinutes 10.)
|> (fun r -> if r <> 0 then failwithf "failed to push package %s" nugetpackage)
else traceFAKE "could not push '%s', because api key was not set" nugetpackage

Target "DotnetCorePushNuGet" (fun _ ->
// dotnet pack
netCoreProjs
-- "src/app/Fake.netcore/*.fsproj"
Expand All @@ -995,15 +997,13 @@ Target "DotnetCorePushNuGet" (fun _ ->

Target "PublishNuget" (fun _ ->
// uses NugetKey environment variable.
Paket.Push(fun p ->
{ p with
DegreeOfParallelism = 2
WorkingDir = nugetLegacyDir })
// We have some nugets in there we don't want to push
// Timeout atm
//Paket.Push(fun p ->
// { p with
// DegreeOfParallelism = 2
// WorkingDir = nugetDncDir })
// WorkingDir = nugetLegacyDir })
!! (nugetLegacyDir </> "**/*.nupkg")
|> Seq.iter nugetPush
)

Target "ReleaseDocs" (fun _ ->
Expand Down
2 changes: 1 addition & 1 deletion paket.dependencies
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ group Build
source http://nuget.org/api/v2
source https://ci.appveyor.com/nuget/fake
source https://ci.appveyor.com/nuget/fsharp-formatting

nuget FSharp.Core ~> 4.1.0
nuget Nuget.CommandLine
nuget FAKE prerelease
Expand Down

0 comments on commit b323aef

Please sign in to comment.