From 4e3f14a14d22c1ea3f5555dbbde497c89cb6f51f Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 2 Sep 2026 21:58:40 +0000 Subject: [PATCH 1/2] Fix CI build: remove mono-dependent nuget.exe restore, use dotnet CLI Co-authored-by: PromoFaux <1998970+PromoFaux@users.noreply.github.com> --- .github/workflows/build.yml | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 669d1a6..c901bc9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -18,21 +18,18 @@ jobs: steps: - name: Checkout Repo - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: fetch-depth: 0 # To make GitVersion work (installed as dependency in project) - - - name: Setup NuGet - uses: NuGet/setup-nuget@v1.0.5 - - - name: Restore dependencies - run: nuget restore $SOLUTION - name: Setup .NET - uses: actions/setup-dotnet@v1 + uses: actions/setup-dotnet@v4 with: dotnet-version: '6.0.x' include-prerelease: true + - + name: Restore dependencies + run: dotnet restore $SOLUTION - name: Build run: dotnet build $SOLUTION --configuration $BUILD_CONFIG --no-restore @@ -45,9 +42,9 @@ jobs: run: | if [ "${{ secrets.NUGET_API_KEY }}" != "" ]; then echo "Pushing to nuget.org" - nuget push Matterhook.NET.MatterhookClient/bin/Release/*.nupkg -Source 'https://api.nuget.org/v3/index.json' -ApiKey ${{secrets.NUGET_API_KEY}} + dotnet nuget push Matterhook.NET.MatterhookClient/bin/Release/*.nupkg -Source 'https://api.nuget.org/v3/index.json' -ApiKey ${{secrets.NUGET_API_KEY}} else echo "Not pushing to nuget.org, no NUGET_API_KEY set in repo secrets" fi echo "Pushing to github packages" - nuget push Matterhook.NET.MatterhookClient/bin/Release/*.nupkg -Source 'https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json' -ApiKey ${{secrets.GITHUB_TOKEN}} \ No newline at end of file + dotnet nuget push Matterhook.NET.MatterhookClient/bin/Release/*.nupkg -Source 'https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json' -ApiKey ${{secrets.GITHUB_TOKEN}} \ No newline at end of file From 9a2f93085ee5c4208ed1b9b58439d58d06af8e17 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 2 Sep 2026 22:09:55 +0000 Subject: [PATCH 2/2] Comment out nuget/github packages publish step in CI Co-authored-by: PromoFaux <1998970+PromoFaux@users.noreply.github.com> --- .github/workflows/build.yml | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c901bc9..f16be04 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -36,15 +36,15 @@ jobs: - name: Run Tests run: dotnet test --no-restore --verbosity normal - - - name: Publish - if: github.event_name != 'pull_request' - run: | - if [ "${{ secrets.NUGET_API_KEY }}" != "" ]; then - echo "Pushing to nuget.org" - dotnet nuget push Matterhook.NET.MatterhookClient/bin/Release/*.nupkg -Source 'https://api.nuget.org/v3/index.json' -ApiKey ${{secrets.NUGET_API_KEY}} - else - echo "Not pushing to nuget.org, no NUGET_API_KEY set in repo secrets" - fi - echo "Pushing to github packages" - dotnet nuget push Matterhook.NET.MatterhookClient/bin/Release/*.nupkg -Source 'https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json' -ApiKey ${{secrets.GITHUB_TOKEN}} \ No newline at end of file + # - + # name: Publish + # if: github.event_name != 'pull_request' + # run: | + # if [ "${{ secrets.NUGET_API_KEY }}" != "" ]; then + # echo "Pushing to nuget.org" + # dotnet nuget push Matterhook.NET.MatterhookClient/bin/Release/*.nupkg -Source 'https://api.nuget.org/v3/index.json' -ApiKey ${{secrets.NUGET_API_KEY}} + # else + # echo "Not pushing to nuget.org, no NUGET_API_KEY set in repo secrets" + # fi + # echo "Pushing to github packages" + # dotnet nuget push Matterhook.NET.MatterhookClient/bin/Release/*.nupkg -Source 'https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json' -ApiKey ${{secrets.GITHUB_TOKEN}} \ No newline at end of file