ln.parse/build.ln

47 lines
1.4 KiB
Plaintext
Raw Normal View History

2020-12-03 00:28:45 +01:00
{
"env": {
2020-12-04 00:42:26 +01:00
"NUGET_SOURCE": "https://nexus.niclas-thobaben.de/repository/l--n.de/",
2020-12-03 00:28:45 +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.parse -o .build -c $CONFIGURATION",
]
},
{
"name": "push",
"commands": [
2020-12-04 00:42:26 +01:00
"SH for NUPKG in .build/*.nupkg; do dotnet nuget push $NUPKG -s $NUGET_SOURCE -k $NUGET_APIKEY; done",
2020-12-03 00:28:45 +01:00
],
"secrets": {
2020-12-04 00:42:26 +01:00
"NUGET_APIKEY": "https://nexus.niclas-thobaben.de"
2020-12-03 00:28:45 +01:00
}
}
]
}