Skip to content

Commit 5fea5b8

Browse files
committed
fix create nuget task
1 parent 9afc838 commit 5fea5b8

File tree

2 files changed

+16
-18
lines changed

2 files changed

+16
-18
lines changed

build.fsx

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,13 @@ let outputTests = output @@ "tests"
1818
let outputBinaries = output @@ "binaries"
1919
let outputNuGet = output @@ "nuget"
2020

21+
let buildNumber = environVarOrDefault "BUILD_NUMBER" "0"
22+
let preReleaseVersionSuffix = "beta" + (if (not (buildNumber = "0")) then (buildNumber) else "")
23+
let versionSuffix =
24+
match (getBuildParam "nugetprerelease") with
25+
| "dev" -> preReleaseVersionSuffix
26+
| _ -> ""
27+
2128
Target "Clean" (fun _ ->
2229
CleanDir output
2330
CleanDir outputTests
@@ -50,23 +57,14 @@ Target "Build" (fun _ ->
5057
//--------------------------------------------------------------------------------
5158

5259
Target "CreateNuget" (fun _ ->
53-
let envBuildNumber = environVarOrDefault "APPVEYOR_BUILD_NUMBER" "0"
54-
let branch = environVarOrDefault "APPVEYOR_REPO_BRANCH" ""
55-
let versionSuffix = if branch.Equals("dev") then (sprintf "beta-%s" envBuildNumber) else ""
56-
57-
let projects = !! "./**/Akka.Logger.Serilog.csproj"
58-
59-
let runSingleProject project =
60-
DotNetCli.Pack
61-
(fun p ->
62-
{ p with
63-
Project = project
64-
Configuration = configuration
65-
AdditionalArgs = ["--include-symbols"]
66-
VersionSuffix = versionSuffix
67-
OutputPath = outputNuGet })
68-
69-
projects |> Seq.iter (runSingleProject)
60+
DotNetCli.Pack
61+
(fun p ->
62+
{ p with
63+
Project = "./**/Akka.Logger.Serilog.csproj"
64+
Configuration = configuration
65+
AdditionalArgs = ["--include-symbols"]
66+
VersionSuffix = versionSuffix
67+
OutputPath = outputNuGet })
7068
)
7169

7270
//--------------------------------------------------------------------------------

src/Akka.Logger.Serilog/Akka.Logger.Serilog.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<Copyright>Copyright © 2013-2017 Akka.NET Team</Copyright>
88
<Authors>Akka.NET Team</Authors>
99
<VersionPrefix>1.3.0</VersionPrefix>
10-
<PackageIconUrl>http://getakka.net/images/AkkaNetLogo.Normal.png</PackageIconUrl>
10+
<PackageIconUrl>http://getakka.net/images/akkalogo.png</PackageIconUrl>
1111
<PackageProjectUrl>https://github.com/akkadotnet/Akka.Logger.Serilog</PackageProjectUrl>
1212
<PackageLicenseUrl>https://github.com/akkadotnet/Akka.Logger.Serilog/blob/master/LICENSE</PackageLicenseUrl>
1313
<GenerateDocumentationFile>true</GenerateDocumentationFile>

0 commit comments

Comments
 (0)