Release 0.2.0
ln.build - build0.waldrennach.l--n.de build job pending Details

master
Harald Wolff 2020-12-03 00:18:30 +01:00
parent d356c88368
commit bc8c5d06ee
3 changed files with 52 additions and 45 deletions

5
.gitignore vendored
View File

@ -39,3 +39,8 @@ Thumbs.db
# dotCover # dotCover
*.dotCover *.dotCover
*.log
*.log.old
.vscode
.build

View File

@ -1,45 +1,47 @@
{ {
"env": { "env": {
"DOTNET_SOURCE": "http://nuget.l--n.de/nuget/l--n/v3/index.json", "NUGET_SOURCE": "http://nuget.l--n.de/nuget/l--n/v3/index.json",
"CONFIGURATION": "Release" "CONFIGURATION": "Release"
}, },
"stages": [ "stages": [
{ {
"name": "setup", "name": "setup",
"env": { "env": {
"SOME_ENV_VAR": "Some text", "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", "name": "prepare",
"SH set", "commands": [
"SH rm -Rf .build" "SH dotnet restore",
] "SH dotnet clean"
}, ]
{ },
"name": "prepare", {
"commands": [ "name": "build",
"SH dotnet restore", "commands": [
"SH dotnet clean" "SH dotnet build -c $CONFIGURATION"
] ]
}, },
{ {
"name": "build", "name": "pack_and_publish",
"commands": [ "commands": [
"SH dotnet build -c Release" "SH dotnet pack ln.http -o .build -c $CONFIGURATION",
] ]
}, },
{ {
"name": "pack_and_publish", "name": "push",
"commands": [ "commands": [
"SH dotnet pack ln.build/ln.build.csproj -o .build -c Release", "SH dotnet nuget push .build/ln.http.*.nupkg -s $NUGET_SOURCE -k $NUGET_APIKEY"
"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" ],
] "secrets": {
}, "NUGET_APIKEY": "key/nuget.l--n.de"
{ }
"name": "push", }
"commands": [ ]
"SH dotnet nuget push .build/ln-build.*.nupkg -s ${DOTNET_SOURCE} -k ${DOTNET_APIKEY}" }
]
}
]
}

View File

@ -3,7 +3,7 @@
<PropertyGroup> <PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework> <TargetFramework>netcoreapp3.1</TargetFramework>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild> <GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Version>0.1.2</Version> <Version>0.2.0</Version>
<Authors>Harald Wolff-Thobaben</Authors> <Authors>Harald Wolff-Thobaben</Authors>
<Company>l--n.de</Company> <Company>l--n.de</Company>
<Description /> <Description />