From 36296ff495cc42bb2c8c6020b5aac29229129927 Mon Sep 17 00:00:00 2001 From: Dennis Diatlov Date: Wed, 27 Nov 2024 16:16:49 +0000 Subject: [PATCH] add publishing to NuGet.org --- .github/workflows/net-release.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/net-release.yml b/.github/workflows/net-release.yml index 7ec87d42..25714bb0 100644 --- a/.github/workflows/net-release.yml +++ b/.github/workflows/net-release.yml @@ -183,10 +183,16 @@ jobs: -p:RepositoryUrl=${{ github.server_url }}/${{ github.repository }} \ -p:Authors=Gear - - name: Publish NuGet Packages + # - name: Publish NuGet Packages + # run: | + # dotnet nuget push ./nugets/*.nupkg \ + # --source $NUGET_SOURCE_URL + + - name: Publish NuGet Packages to NuGet.org run: | dotnet nuget push ./nugets/*.nupkg \ - --source $NUGET_SOURCE_URL + --source https://api.nuget.org/v3/index.json \ + --api-key ${{ secrets.NUGET_ORG_API_KEY }} release: name: Create Release