Skip to content

Commit

Permalink
Use nuget
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Feb 12, 2024
1 parent 092b26d commit e1603df
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/actions/setup-vcpkg/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ runs:
$PKG_SOURCE_USER = $env:GITHUB_REPOSITORY -split '/' | Select-Object -First 1
iex (iwr -useb https://aka.ms/vcpkg-init.ps1)
vcpkg fetch nuget
# TODO : use PKG_SOURCE_USER for Source and GITHUB_ACTOR for UserName
C:\ProgramData\Chocolatey\bin\nuget.exe sources add -Name ghpkg -Source https://nuget.pkg.github.com/open-vcpkg/index.json -UserName open-vcpkg -Password ${{ inputs.github_token }} -StorePasswordInClearText
.$(vcpkg fetch nuget) sources add -Name ghpkg -Source https://nuget.pkg.github.com/open-vcpkg/index.json -UserName open-vcpkg -Password ${{ inputs.github_token }} -StorePasswordInClearText
echo "VCPKG_BINARY_SOURCES=clear;nuget,https://nuget.pkg.github.com/open-vcpkg/index.json,readwrite" >> $env:GITHUB_ENV

0 comments on commit e1603df

Please sign in to comment.