From d181adb429970c07dce3da151f1d744604bbd5f5 Mon Sep 17 00:00:00 2001 From: Andrii Kurdiumov Date: Thu, 30 Apr 2026 13:47:16 +0200 Subject: [PATCH] Publish Nuget when PR lands on main branch --- .github/workflows/dotnet-desktop.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dotnet-desktop.yml b/.github/workflows/dotnet-desktop.yml index ae7a2c52..5f9cf704 100644 --- a/.github/workflows/dotnet-desktop.yml +++ b/.github/workflows/dotnet-desktop.yml @@ -141,7 +141,7 @@ jobs: - name: push to NuGet # Only push to NuGet if we're building a tag (optional) - if: github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/') + if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/') shell: pwsh # Loop through all the packages in the output folder and push them to # nuget.org, using the NUGET_API_KEY generated by the previous login step