From 8a8e29c3cc71a4a9831ab50957f944aa8e5d821f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Pe=C3=B1alba?= Date: Fri, 13 Dec 2024 11:20:58 +0100 Subject: [PATCH] Use dotnet nuget subcommand for nuget --- .github/workflows/nuget.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/nuget.yml b/.github/workflows/nuget.yml index 7870104..6c1b33a 100644 --- a/.github/workflows/nuget.yml +++ b/.github/workflows/nuget.yml @@ -21,11 +21,8 @@ jobs: run: echo "branch=$(echo ${GITHUB_REF#refs/tags/v})" >> $GITHUB_OUTPUT id: extract_branch - - name: Setup NuGet - uses: NuGet/setup-nuget@v2 - - name: Restore dependencies - run: nuget restore $SOLUTION + run: dotnet restore $SOLUTION - name: Setup .NET uses: actions/setup-dotnet@v4 @@ -39,4 +36,4 @@ jobs: run: dotnet test /p:Configuration=$BUILD_CONFIG --no-restore --no-build --verbosity normal - name: Publish - run: nuget push **\*.nupkg -Source 'https://api.nuget.org/v3/index.json' -ApiKey ${{secrets.NUGET_API_KEY}} + run: dotnet nuget push **\*.nupkg --source 'https://api.nuget.org/v3/index.json' --api-key ${{secrets.NUGET_API_KEY}}