Updated build.ln
ln.build - pc-harald.waldrennach.l--n.de build job pending Details

master
Harald Wolff 2020-12-02 22:15:59 +01:00
parent 86dd375a9c
commit 6c01872910
1 changed files with 8 additions and 7 deletions

View File

@ -11,33 +11,34 @@
}, },
"commands": [ "commands": [
"SH echo Setting up build environment", "SH echo Setting up build environment",
"DOTNET analyze" "SH set",
"SH rm -Rf .build"
] ]
}, },
{ {
"name": "prepare", "name": "prepare",
"commands": [ "commands": [
"DOTNET clean", "SH dotnet restore",
"DOTNET restore" "SH dotnet clean"
] ]
}, },
{ {
"name": "build", "name": "build",
"commands": [ "commands": [
"DOTNET build" "SH dotnet build -c Release"
] ]
}, },
{ {
"name": "pack_and_publish", "name": "pack_and_publish",
"commands": [ "commands": [
"DOTNET pack", "SH dotnet pack ln.build -o .build -c Release",
"DOTNET publish" "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", "name": "push",
"commands": [ "commands": [
"SH exit 2" "SH dotnet nuget push .build/ln-build.*.nupkg -s ${DOTNET_SOURCE} -k ${DOTNET_APIKEY}"
] ]
} }
] ]