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 1/4] 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 From 03d6eb54020249f19af913b533e1759a53d85f97 Mon Sep 17 00:00:00 2001 From: Darii Nurgaleev <50947177+Darleev@users.noreply.github.com> Date: Thu, 6 May 2021 15:10:43 +0700 Subject: [PATCH 2/4] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5efa9ff..c36fe3e 100644 --- a/README.md +++ b/README.md @@ -109,7 +109,7 @@ steps: - uses: actions/setup-dotnet@v1 with: dotnet-version: 3.1.x -- name: Publish the package to NuGet Org +- 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 }} From e1cf912aafa9c45a48fd9084d40fc1a179929065 Mon Sep 17 00:00:00 2001 From: Darii Nurgaleev <50947177+Darleev@users.noreply.github.com> Date: Thu, 6 May 2021 20:10:13 +0700 Subject: [PATCH 3/4] Update README.md --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c36fe3e..ba8c1e5 100644 --- a/README.md +++ b/README.md @@ -96,7 +96,7 @@ steps: - name: Publish the package to GPR run: dotnet nuget push /bin/Release/*.nupkg -# Authticates packages to push to Azure Artifacts +# Authenticates packages to push to Azure Artifacts - uses: actions/setup-dotnet@v1 with: source-url: https://pkgs.dev.azure.com//_packaging//nuget/v3/index.json @@ -105,7 +105,8 @@ steps: - name: Publish the package to Azure Artifacts run: dotnet nuget push /bin/Release/*.nupkg -# Authticates packages to push to NuGet Org +# Authenticates packages to push to nuget.org. +# It's only the way to push a package to nuget.org feed for macOS/Linus machines due to API key config store limitations. - uses: actions/setup-dotnet@v1 with: dotnet-version: 3.1.x From 450b56953467f102e9416c3fa013302139a6a590 Mon Sep 17 00:00:00 2001 From: Darii Nurgaleev <50947177+Darleev@users.noreply.github.com> Date: Thu, 6 May 2021 21:38:47 +0700 Subject: [PATCH 4/4] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ba8c1e5..7ce5062 100644 --- a/README.md +++ b/README.md @@ -106,7 +106,7 @@ steps: run: dotnet nuget push /bin/Release/*.nupkg # Authenticates packages to push to nuget.org. -# It's only the way to push a package to nuget.org feed for macOS/Linus machines due to API key config store limitations. +# It's only the way to push a package to nuget.org feed for macOS/Linux machines due to API key config store limitations. - uses: actions/setup-dotnet@v1 with: dotnet-version: 3.1.x