From c76349926b7efe87da0456dad246da23570d4132 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9mie=20Bertrand?= Date: Tue, 2 Nov 2021 21:16:26 +0100 Subject: [PATCH] fix env var uses --- .github/workflows/build.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 20204906..e2fb1911 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -156,16 +156,16 @@ jobs: asset_content_type: application/zip - name: Chocolatey push - run: choco push artifact/chocolatey/nvika.${{ steps.get_version.outputs.version }}.nupkg --source=https://push.chocolatey.org/ --api-key=${CHOCO_API_KEY} + run: choco push artifact/chocolatey/nvika.${{ steps.get_version.outputs.version }}.nupkg --source=https://push.chocolatey.org/ --api-key=$env:CHOCO_API_KEY env: CHOCO_API_KEY: ${{ secrets.CHOCO_API_KEY }} - name: Nuget push Tool - run: dotnet nuget push artifact/nuget/NVika.${{ steps.get_version.outputs.version }}.nupkg -s https://api.nuget.org/v3/index.json -k ${NUGET_API_KEY} + run: dotnet nuget push artifact/nuget/NVika.${{ steps.get_version.outputs.version }}.nupkg -s https://api.nuget.org/v3/index.json -k $env:NUGET_API_KEY env: NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }} - name: Nuget push MSBuild - run: dotnet nuget push artifact/nuget/NVika.MSBuild.${{ steps.get_version.outputs.version }}.nupkg -s https://api.nuget.org/v3/index.json -k ${NUGET_API_KEY} + run: dotnet nuget push artifact/nuget/NVika.MSBuild.${{ steps.get_version.outputs.version }}.nupkg -s https://api.nuget.org/v3/index.json -k $env:NUGET_API_KEY env: NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}