From effa3e26d27163d31188ae30eb027044d42621b4 Mon Sep 17 00:00:00 2001 From: Darii Nurgaleev <50947177+Darleev@users.noreply.github.com> Date: Thu, 6 May 2021 02:55:59 +0700 Subject: [PATCH] Update README.md --- README.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index dd3c496..5efa9ff 100644 --- a/README.md +++ b/README.md @@ -93,7 +93,7 @@ steps: - run: dotnet build - name: Create the package run: dotnet pack --configuration Release - - name: Publish the package to GPR +- name: Publish the package to GPR run: dotnet nuget push /bin/Release/*.nupkg # Authticates packages to push to Azure Artifacts @@ -104,6 +104,15 @@ steps: NUGET_AUTH_TOKEN: ${{secrets.AZURE_DEVOPS_PAT}} # Note, create a secret with this name in Settings - name: Publish the package to Azure Artifacts run: dotnet nuget push /bin/Release/*.nupkg + +# Authticates packages to push to NuGet Org +- uses: actions/setup-dotnet@v1 + with: + dotnet-version: 3.1.x +- name: Publish the package to NuGet Org + run: dotnet nuget push */bin/Release/*.nupkg -k $NUGET_AUTH_TOKEN -s https://api.nuget.org/v3/index.json + env: + NUGET_AUTH_TOKEN: ${{ secrets.NUGET_TOKEN }} ``` ## Environment Variables to use with dotnet