From 45513261b5ba6ba475b83afe5ad0a9199bb5b860 Mon Sep 17 00:00:00 2001 From: Charley Wu Date: Wed, 20 Jan 2021 16:38:41 +0800 Subject: [PATCH] dotnet nuget push fails to authenticate - https://github.com/actions/setup-dotnet/issues/101 --- .github/workflows/cd.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 5017197..c1ae578 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -17,12 +17,9 @@ jobs: uses: actions/setup-dotnet@v1 with: dotnet-version: 5.0.x - source-url: https://api.nuget.org/v3/index.json - env: - NUGET_AUTH_TOKEN: ${{secrets.NUGET_AUTH_TOKEN}} - name: Build packages run: | dotnet --info dotnet pack -c Release -o packages - name: Push to NuGet.org - run: dotnet nuget push packages/*.nupkg --skip-duplicate + run: dotnet nuget push packages/*.nupkg -k ${{secrets.NUGET_AUTH_TOKEN}} -s https://api.nuget.org/v3/index.json --skip-duplicate