From e4f4989ea295778a44158e67cb9647d52eeed727 Mon Sep 17 00:00:00 2001 From: Harald Wolff Date: Wed, 30 Dec 2020 12:22:29 +0100 Subject: [PATCH] Fixed build.ln --- build.ln | 38 ++++---------------------------------- 1 file changed, 4 insertions(+), 34 deletions(-) diff --git a/build.ln b/build.ln index d727464..afa2528 100644 --- a/build.ln +++ b/build.ln @@ -1,47 +1,17 @@ { + "templates": [ + "dotnet" + ], "env": { "NUGET_SOURCE": "https://nexus.niclas-thobaben.de/repository/l--n.de/", "CONFIGURATION": "Release" }, "stages": [ - { - "name": "setup", - "env": { - "SOME_ENV_VAR": "Some text", - }, - "commands": [ - "SH echo Setting up build environment", - "SH set", - "SH rm -Rf .build" - ] - }, { "name": "prepare", "commands": [ - "SH dotnet restore", - "SH dotnet clean" + "dotnet prepare */*.csproj" ] - }, - { - "name": "build", - "commands": [ - "SH dotnet build -c $CONFIGURATION" - ] - }, - { - "name": "pack_and_publish", - "commands": [ - "SH dotnet pack -o .build -c $CONFIGURATION", - ] - }, - { - "name": "push", - "commands": [ - "SH for NUPKG in .build/ln.*.nupkg; do dotnet nuget push $NUPKG -s $NUGET_SOURCE -k $NUGET_APIKEY; done", - ], - "secrets": { - "NUGET_APIKEY": "https://nexus.niclas-thobaben.de" - } } ] } \ No newline at end of file