ln.templates/build.ln

47 lines
1.4 KiB
Plaintext
Raw Normal View History

2020-12-03 00:31:52 +01:00
{
"env": {
2020-12-08 09:32:33 +01:00
"NUGET_SOURCE": "https://nexus.niclas-thobaben.de/repository/l--n.de/",
2020-12-03 00:31:52 +01:00
"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": {
2020-12-08 09:32:33 +01:00
"NUGET_APIKEY": "https://nexus.niclas-thobaben.de"
2020-12-03 00:31:52 +01:00
}
}
]
}