From 792a98385326de613f038e764526d6a8927fe13a Mon Sep 17 00:00:00 2001 From: Twinki Date: Tue, 26 Dec 2023 16:59:30 -0500 Subject: [PATCH] Publish to nuget.org --- .github/workflows/build-publish.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-publish.yaml b/.github/workflows/build-publish.yaml index 1c1ba48..a2fd6ab 100644 --- a/.github/workflows/build-publish.yaml +++ b/.github/workflows/build-publish.yaml @@ -58,8 +58,8 @@ jobs: working-directory: src - name: Publish - NuGet - if: ${{ env.is-default-branch == 'true' || env.is-tag == 'true' }} - run: echo "NuGet" + if: ${{ env.is-tag == 'true' }} + run: dotnet nuget push **/*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY }} --skip-duplicate - name: Publish - GitHub if: ${{ env.is-default-branch == 'true' || env.is-tag == 'true' }}