Skip to content

Commit

Permalink
Merge pull request #610 from SAFE-Stack/fix-nuget-push
Browse files Browse the repository at this point in the history
Fix build script failing on publish because of incorrect dotnet command
  • Loading branch information
Larocceau authored May 24, 2024
2 parents 8a69ed1 + b354760 commit e8677f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Build.fs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ Target.create "Tests" (fun _ ->
Target.create "Release" (fun _ ->
let nugetApiKey = Environment.environVarOrFail "NUGET_API_KEY"
let nugetArgs = $"""push "*.nupkg" --api-key {nugetApiKey} --source https://api.nuget.org/v3/index.json"""
let result = DotNet.exec (fun x -> { x with DotNetCliPath = "dotnet" }) "new" nugetArgs
let result = DotNet.exec (fun x -> { x with DotNetCliPath = "dotnet"; WorkingDirectory = nupkgDir }) "nuget" nugetArgs
if not result.OK then failwithf "`dotnet %s` failed" "nuget push")

open Fake.Core.TargetOperators
Expand Down

0 comments on commit e8677f3

Please sign in to comment.