From b83c35b5fe7af15e220e44dc8f5c5a56fc083ad8 Mon Sep 17 00:00:00 2001 From: Vitalii Mikhailov Date: Tue, 24 Sep 2024 11:32:45 +0300 Subject: [PATCH 1/2] Fixed NuGet Push Path Pattern --- .github/workflows/reusable-publish.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/reusable-publish.yml b/.github/workflows/reusable-publish.yml index ce15f76a0..3ea500f1f 100644 --- a/.github/workflows/reusable-publish.yml +++ b/.github/workflows/reusable-publish.yml @@ -51,10 +51,10 @@ jobs: - name: Push to NuGet if: ${{github.ref == 'refs/heads/master'}} - run: dotnet nuget push "./artifacts/*.nupkg" -k ${{secrets.NUGET_API_KEY}} -s https://www.nuget.org --skip-duplicate + run: dotnet nuget push "./artifacts/**/*.nupkg" -k ${{secrets.NUGET_API_KEY}} -s https://www.nuget.org --skip-duplicate shell: pwsh - name: Push to NuGet Nightly if: ${{github.ref == 'refs/heads/development'}} - run: dotnet nuget push "./artifacts/*.nupkg" -k ${{secrets.NIGHTLY_NUGET_API_KEY}} -s ${{secrets.NIGHTLY_NUGET_SOURCE}} --skip-duplicate + run: dotnet nuget push "./artifacts/**/*.nupkg" -k ${{secrets.NIGHTLY_NUGET_API_KEY}} -s ${{secrets.NIGHTLY_NUGET_SOURCE}} --skip-duplicate shell: pwsh From 56f531ae9831f418481fab017534ae3b584125f5 Mon Sep 17 00:00:00 2001 From: Vitalii Mikhailov Date: Tue, 24 Sep 2024 17:31:53 +0300 Subject: [PATCH 2/2] Removed explicit NuGet source --- .github/workflows/reusable-publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/reusable-publish.yml b/.github/workflows/reusable-publish.yml index 3ea500f1f..607cbf157 100644 --- a/.github/workflows/reusable-publish.yml +++ b/.github/workflows/reusable-publish.yml @@ -51,7 +51,7 @@ jobs: - name: Push to NuGet if: ${{github.ref == 'refs/heads/master'}} - run: dotnet nuget push "./artifacts/**/*.nupkg" -k ${{secrets.NUGET_API_KEY}} -s https://www.nuget.org --skip-duplicate + run: dotnet nuget push "./artifacts/**/*.nupkg" -k ${{secrets.NUGET_API_KEY}} --skip-duplicate shell: pwsh - name: Push to NuGet Nightly