From fb412cd3b99c4ee0661fe27793b97675176b8e32 Mon Sep 17 00:00:00 2001 From: Harald Wolff Date: Wed, 9 Dec 2020 15:20:58 +0100 Subject: [PATCH] cleanup, update build.ln --- build.ln | 64 +++++++++----------------------- ln.templates/Template.cs | 2 - ln.templates/ln.templates.csproj | 8 +--- 3 files changed, 18 insertions(+), 56 deletions(-) diff --git a/build.ln b/build.ln index ce059cc..afa2528 100644 --- a/build.ln +++ b/build.ln @@ -1,47 +1,17 @@ - { - "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" - ] - }, - { - "name": "build", - "commands": [ - "SH dotnet build -c $CONFIGURATION" - ] - }, - { - "name": "pack_and_publish", - "commands": [ - "SH dotnet pack ln.templates -o .build -c $CONFIGURATION", - ] - }, - { - "name": "push", - "commands": [ - "SH dotnet nuget push .build/ln.templates.*.nupkg -s $NUGET_SOURCE -k $NUGET_APIKEY" - ], - "secrets": { - "NUGET_APIKEY": "https://nexus.niclas-thobaben.de" - } - } - ] - } \ No newline at end of file +{ + "templates": [ + "dotnet" + ], + "env": { + "NUGET_SOURCE": "https://nexus.niclas-thobaben.de/repository/l--n.de/", + "CONFIGURATION": "Release" + }, + "stages": [ + { + "name": "prepare", + "commands": [ + "dotnet prepare */*.csproj" + ] + } + ] +} \ No newline at end of file diff --git a/ln.templates/Template.cs b/ln.templates/Template.cs index 683a865..6bd7b31 100644 --- a/ln.templates/Template.cs +++ b/ln.templates/Template.cs @@ -1,8 +1,6 @@ using System; using System.IO; -using System.Collections.Generic; using System.Text; -using ln.templates.streams; using ln.templates.elements; namespace ln.templates diff --git a/ln.templates/ln.templates.csproj b/ln.templates/ln.templates.csproj index 089ac4f..e4ebb05 100644 --- a/ln.templates/ln.templates.csproj +++ b/ln.templates/ln.templates.csproj @@ -4,7 +4,7 @@ netcoreapp3.1 - 0.2.0 + 0.2.1-ci Harald Wolff-Thobaben l--n.de A simple templating system @@ -12,12 +12,6 @@ templating template - - - - - -