File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -33,17 +33,20 @@ pipeline "publish" {
3333 if not ( System.IO.Directory.Exists( outputDir)) then
3434 System.IO.Directory.CreateDirectory( outputDir) |> ignore
3535 )
36- run $" dotnet pack src/AgentNet/AgentNet.fsproj -c Release --no-build -- output {outputDir}"
37- run $" dotnet pack src/AgentNet.Durable/AgentNet.Durable.fsproj -c Release --no-build -- output {outputDir}"
38- run $" dotnet pack src/AgentNet.InProcess/AgentNet.InProcess.fsproj -c Release --no-build -- output {outputDir}"
39- run $" dotnet pack src/AgentNet.InProcess.Polly/AgentNet.InProcess.Polly.fsproj -c Release --no-build -- output {outputDir}"
36+ run $" dotnet pack src/AgentNet/AgentNet.fsproj -c Release --output {outputDir}"
37+ run $" dotnet pack src/AgentNet.Durable/AgentNet.Durable.fsproj -c Release --output {outputDir}"
38+ run $" dotnet pack src/AgentNet.InProcess/AgentNet.InProcess.fsproj -c Release --output {outputDir}"
39+ run $" dotnet pack src/AgentNet.InProcess.Polly/AgentNet.InProcess.Polly.fsproj -c Release --output {outputDir}"
4040 }
4141
4242 stage " push" {
43- whenEnvVar " SQLHYDRA_NUGET_KEY "
43+ whenEnvVar " AGENT_NET_NUGET_KEY "
4444 run ( fun ctx ->
45- let key = ctx.GetEnvVar " SQLHYDRA_NUGET_KEY"
46- ctx.RunSensitiveCommand $""" dotnet nuget push {outputDir}/*.nupkg -s https://api.nuget.org/v3/index.json -k {key}"""
45+ let key = ctx.GetEnvVar " AGENT_NET_NUGET_KEY"
46+ for pkg in System.IO.Directory.GetFiles( outputDir, " *.nupkg" ) do
47+ ctx.RunSensitiveCommand $""" dotnet nuget push {pkg} -s https://api.nuget.org/v3/index.json -k {key}"""
48+ |> Async.RunSynchronously
49+ |> ignore
4750 )
4851 }
4952
Original file line number Diff line number Diff line change 1+ @ echo off
12dotnet fsi build.fsx -- -p publish
23pause
You can’t perform that action at this time.
0 commit comments