Skip to content

Commit 0439ed2

Browse files
committed
Updates to build.fsx
1 parent 97e41c4 commit 0439ed2

2 files changed

Lines changed: 11 additions & 7 deletions

File tree

build.fsx

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff 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

publish.bat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1+
@echo off
12
dotnet fsi build.fsx -- -p publish
23
pause

0 commit comments

Comments
 (0)