Ignore release updates, create windows executable
parent
21b53b137c
commit
c87831ca00
6
build.ln
6
build.ln
|
@ -33,14 +33,16 @@
|
|||
"commands": [
|
||||
"SH dotnet pack ln.build -o .build -c $CONFIGURATION",
|
||||
"SH dotnet pack ln.build.server -o .build -c $CONFIGURATION",
|
||||
"SH dotnet publish ln.build.server -p:PublishTrimmed=true -p:PublishSingleFile=true -p:PublishReadyToRun=true --self-contained -r linux-x64 -c $CONFIGURATION -o .build/linux-x64"
|
||||
"SH dotnet publish ln.build.server -p:PublishTrimmed=true -p:PublishSingleFile=true -p:PublishReadyToRun=true --self-contained -r linux-x64 -c $CONFIGURATION -o .build/linux-x64",
|
||||
"SH dotnet publish ln.build.server -p:PublishTrimmed=true -p:PublishSingleFile=true -p:PublishReadyToRun=false --self-contained -r win-x64 -c $CONFIGURATION -o .build/windows-x64"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "push",
|
||||
"commands": [
|
||||
"SH for NUPKG in .build/ln.build.*.nupkg; do dotnet nuget push $NUPKG -s $NUGET_SOURCE -k $NUGET_APIKEY; done",
|
||||
"RELEASE .build/linux-x64/ln.build.server=ln.build.server-linux-amd64"
|
||||
"RELEASE .build/linux-x64/ln.build.server=ln.build.server-linux-amd64",
|
||||
"RELEASE .build/windows-x64/ln.build.server=ln.build.server-windows-x64.exe"
|
||||
],
|
||||
"secrets": {
|
||||
"NUGET_APIKEY": "https://nexus.niclas-thobaben.de"
|
||||
|
|
|
@ -43,9 +43,6 @@ namespace ln.build.server
|
|||
} else {
|
||||
CIService.Initialize();
|
||||
CIService.AddWebHookHandler("gitea", GiteaRepository.WebHookHandler);
|
||||
|
||||
// (new GiteaRepository("https://git.l--n.de"){ AuthorizationToken = "1d03e9577c404b5b4f46b340147b1d500ff95b2e", });
|
||||
|
||||
CIService.Start();
|
||||
}
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup>
|
||||
<Version>0.4.0</Version>
|
||||
<Version>0.4.1</Version>
|
||||
<Authors>Harald Wolff-Thobaben</Authors>
|
||||
<Company>l--n.de</Company>
|
||||
<Description>A simple build server scheduling builds triggered via web-hooks</Description>
|
||||
|
|
|
@ -139,6 +139,9 @@ namespace ln.build.repositories.gitea
|
|||
switch (eventType)
|
||||
{
|
||||
case "release":
|
||||
if (!message["action"].ToNative().ToString().Equals("published"))
|
||||
return response;
|
||||
|
||||
buildRefs.Add(message["release"]["tag_name"].ToNative().ToString());
|
||||
break;
|
||||
case "push":
|
||||
|
|
Loading…
Reference in New Issue