From 4147b343c27f601cd41a8331d41c90756352f311 Mon Sep 17 00:00:00 2001 From: Ivan Stepanov Date: Fri, 5 Aug 2022 19:26:59 -0400 Subject: [PATCH] [docs] binarycaching.md: NuGet requires to set API Key for source (#22191) --- docs/users/binarycaching.md | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/docs/users/binarycaching.md b/docs/users/binarycaching.md index c37fd96fd8..b091c33ce3 100644 --- a/docs/users/binarycaching.md +++ b/docs/users/binarycaching.md @@ -96,14 +96,17 @@ steps: - name: 'Setup NuGet Credentials' shell: 'bash' # Replace with your organization name - run: > - ${{ matrix.mono }} `./vcpkg/vcpkg fetch nuget | tail -n 1` - sources add - -source "https://nuget.pkg.github.com//index.json" - -storepasswordincleartext - -name "GitHub" - -username "" - -password "${{ secrets.GITHUB_TOKEN }}" + run: | + ${{ matrix.mono }} `./vcpkg/vcpkg fetch nuget | tail -n 1` \ + sources add \ + -source "https://nuget.pkg.github.com//index.json" \ + -storepasswordincleartext \ + -name "GitHub" \ + -username "" \ + -password "${{ secrets.GITHUB_TOKEN }}" + ${{ matrix.mono }} `./vcpkg/vcpkg fetch nuget | tail -n 1` \ + setapikey "${{ secrets.GITHUB_TOKEN }}" \ + -source "https://nuget.pkg.github.com//index.json" # Omit this step if you're using manifests - name: 'vcpkg package restore'