From 8c97994a7df1dc28da75538b9a2d3cd3b57e6165 Mon Sep 17 00:00:00 2001 From: Rutherther Date: Thu, 27 Jan 2022 23:20:34 +0100 Subject: [PATCH] chore: update nuget push action to have the environment variable with publish nuget task --- .github/workflows/nuget-push.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/nuget-push.yml b/.github/workflows/nuget-push.yml index f298db0..be0ad8b 100644 --- a/.github/workflows/nuget-push.yml +++ b/.github/workflows/nuget-push.yml @@ -20,12 +20,12 @@ jobs: uses: actions/setup-dotnet@v1 with: dotnet-version: '6.0.x' - env: - NUGET_AUTH_TOKEN: ${{secrets.NUGET_KEY}} - name: Pack app run: dotnet pack NosSmooth.sln --configuration Release -o nuget - name: Publish NuGet working-directory: nuget - run: dotnet nuget push *.nupkg --skip-duplicate -k $NUGET_AUTH_TOKEN -s https://api.nuget.org/v3/index.json \ No newline at end of file + run: dotnet nuget push *.nupkg --skip-duplicate -k $NUGET_AUTH_TOKEN -s https://api.nuget.org/v3/index.json + env: + NUGET_AUTH_TOKEN: ${{secrets.NUGET_KEY}} \ No newline at end of file -- 2.49.0