Skip to content

Commit

Permalink
Fix artifact paths
Browse files Browse the repository at this point in the history
  • Loading branch information
gdziadkiewicz committed Nov 4, 2024
1 parent 3467440 commit 182645b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions build/build.fs
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ let gitName = "FSharpx.Extras"
// The url for the raw files hosted
let gitRaw = Environment.environVarOrDefault "gitRaw" "https://raw.githubusercontent.com/fsprojects"

let outputDir = __SOURCE_DIRECTORY__ @@ "../bin"

// --------------------------------------------------------------------------------------
// END TODO: The rest of the file includes standard build steps
// --------------------------------------------------------------------------------------
Expand Down Expand Up @@ -102,7 +104,7 @@ let initTargets () =
]
|> Seq.iter (DotNet.publish (fun p ->
{ p with
OutputPath=Some(__SOURCE_DIRECTORY__ @@ "bin")
OutputPath=Some outputDir
Framework=Some"netstandard2.0"

}))
Expand All @@ -126,12 +128,12 @@ let initTargets () =
Target.create "NuGet" (fun _ ->
solutionFile
|> DotNet.pack (fun p ->
{ p with OutputPath=Some(__SOURCE_DIRECTORY__ @@ "bin") })
{ p with OutputPath=Some outputDir })
)

Target.create "PublishNuget" (fun _ ->
Paket.push(fun p ->
{ p with WorkingDir=__SOURCE_DIRECTORY__ @@ "bin" })
{ p with WorkingDir= outputDir })
)


Expand Down

0 comments on commit 182645b

Please sign in to comment.