diff --git a/build.ln b/build.ln index 3364810..7c0649a 100644 --- a/build.ln +++ b/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" diff --git a/ln.build.server/Program.cs b/ln.build.server/Program.cs index 03678f5..05b1847 100644 --- a/ln.build.server/Program.cs +++ b/ln.build.server/Program.cs @@ -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(); } diff --git a/ln.build.server/ln.build.server.csproj b/ln.build.server/ln.build.server.csproj index 186c26b..556ca9b 100644 --- a/ln.build.server/ln.build.server.csproj +++ b/ln.build.server/ln.build.server.csproj @@ -6,7 +6,7 @@ - 0.4.0 + 0.4.1 Harald Wolff-Thobaben l--n.de A simple build server scheduling builds triggered via web-hooks diff --git a/ln.build/repositories/gitea/GiteaRepository.cs b/ln.build/repositories/gitea/GiteaRepository.cs index 408ba1d..e1d9c63 100644 --- a/ln.build/repositories/gitea/GiteaRepository.cs +++ b/ln.build/repositories/gitea/GiteaRepository.cs @@ -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":