mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-27 19:49:01 +08:00
[docs] binarycaching.md: NuGet requires to set API Key for source (#22191)
This commit is contained in:
parent
498c6e90a1
commit
4147b343c2
@ -96,14 +96,17 @@ steps:
|
||||
- name: 'Setup NuGet Credentials'
|
||||
shell: 'bash'
|
||||
# Replace <OWNER> with your organization name
|
||||
run: >
|
||||
${{ matrix.mono }} `./vcpkg/vcpkg fetch nuget | tail -n 1`
|
||||
sources add
|
||||
-source "https://nuget.pkg.github.com/<OWNER>/index.json"
|
||||
-storepasswordincleartext
|
||||
-name "GitHub"
|
||||
-username "<OWNER>"
|
||||
-password "${{ secrets.GITHUB_TOKEN }}"
|
||||
run: |
|
||||
${{ matrix.mono }} `./vcpkg/vcpkg fetch nuget | tail -n 1` \
|
||||
sources add \
|
||||
-source "https://nuget.pkg.github.com/<OWNER>/index.json" \
|
||||
-storepasswordincleartext \
|
||||
-name "GitHub" \
|
||||
-username "<OWNER>" \
|
||||
-password "${{ secrets.GITHUB_TOKEN }}"
|
||||
${{ matrix.mono }} `./vcpkg/vcpkg fetch nuget | tail -n 1` \
|
||||
setapikey "${{ secrets.GITHUB_TOKEN }}" \
|
||||
-source "https://nuget.pkg.github.com/<OWNER>/index.json"
|
||||
|
||||
# Omit this step if you're using manifests
|
||||
- name: 'vcpkg package restore'
|
||||
|
Loading…
Reference in New Issue
Block a user