diff --git a/.gitignore b/.gitignore index bf793ed..542b474 100644 --- a/.gitignore +++ b/.gitignore @@ -39,3 +39,8 @@ Thumbs.db # dotCover *.dotCover + +*.log +*.log.old +.vscode +.build \ No newline at end of file diff --git a/build.ln b/build.ln index b06323f..71aec82 100644 --- a/build.ln +++ b/build.ln @@ -1,45 +1,47 @@ -{ - "env": { - "DOTNET_SOURCE": "http://nuget.l--n.de/nuget/l--n/v3/index.json", - "CONFIGURATION": "Release" - }, - "stages": [ - { - "name": "setup", - "env": { - "SOME_ENV_VAR": "Some text", + { + "env": { + "NUGET_SOURCE": "http://nuget.l--n.de/nuget/l--n/v3/index.json", + "CONFIGURATION": "Release" + }, + "stages": [ + { + "name": "setup", + "env": { + "SOME_ENV_VAR": "Some text", + }, + "commands": [ + "SH echo Setting up build environment", + "SH set", + "SH rm -Rf .build" + ] }, - "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 Release" - ] - }, - { - "name": "pack_and_publish", - "commands": [ - "SH dotnet pack ln.build/ln.build.csproj -o .build -c Release", - "SH dotnet publish ln.build.server -p:PublishTrimmed=true -p:PublishSingleFile=true -p:PublishReadyToRun=true --self-contained -r linux-x64 -c Release -o .build/linux-x64" - ] - }, - { - "name": "push", - "commands": [ - "SH dotnet nuget push .build/ln-build.*.nupkg -s ${DOTNET_SOURCE} -k ${DOTNET_APIKEY}" - ] - } - ] -} \ No newline at end of file + { + "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.http -o .build -c $CONFIGURATION", + ] + }, + { + "name": "push", + "commands": [ + "SH dotnet nuget push .build/ln.http.*.nupkg -s $NUGET_SOURCE -k $NUGET_APIKEY" + ], + "secrets": { + "NUGET_APIKEY": "key/nuget.l--n.de" + } + } + ] + } \ No newline at end of file diff --git a/ln.http/ln.http.csproj b/ln.http/ln.http.csproj index c4f44a4..163b6a9 100644 --- a/ln.http/ln.http.csproj +++ b/ln.http/ln.http.csproj @@ -3,7 +3,7 @@ netcoreapp3.1 true - 0.1.2 + 0.2.0 Harald Wolff-Thobaben l--n.de