Skip to content

Commit

Permalink
setapikey
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Feb 12, 2024
1 parent ba3feed commit 36133cd
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/actions/setup-vcpkg/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ runs:
iex (iwr -useb https://aka.ms/vcpkg-init.ps1)
.$(vcpkg fetch nuget) sources add -Name ghpkg -Source https://nuget.pkg.github.com/$PKG_SOURCE_USER/index.json -UserName $PKG_SOURCE_USER -Password ${{ inputs.github_token }} -StorePasswordInClearText -ConfigFile ${{ github.workspace }}/github-NuGet.Config
$content = Get-Content -Path "${{ github.workspace }}/github-NuGet.Config"
Write-Output $content
.$(vcpkg fetch nuget) sources add -Name ghpkg -Source https://nuget.pkg.github.com/$PKG_SOURCE_USER/index.json -UserName $PKG_SOURCE_USER -Password ${{ inputs.github_token }} -StorePasswordInClearText
.$(vcpkg fetch nuget) sources setapikey ${{ inputs.github_token }} https://nuget.pkg.github.com/$PKG_SOURCE_USER/index.json
echo "VCPKG_BINARY_SOURCES=clear;nuget,https://nuget.pkg.github.com/$PKG_SOURCE_USER/index.json,readwrite" >> $env:GITHUB_ENV

0 comments on commit 36133cd

Please sign in to comment.