diff --git a/.github/actions/setup-vcpkg/action.yml b/.github/actions/setup-vcpkg/action.yml index e28eadc..c26aaa6 100644 --- a/.github/actions/setup-vcpkg/action.yml +++ b/.github/actions/setup-vcpkg/action.yml @@ -22,5 +22,9 @@ runs: if: runner.os == 'Windows' shell: powershell run: | + $PKG_SOURCE_USER = $env:GITHUB_REPOSITORY -split '/' | Select-Object -First 1 + iex (iwr -useb https://aka.ms/vcpkg-init.ps1) vcpkg fetch nuget + + C:\ProgramData\Chocolatey\bin\nuget.exe sources add -Name ghpkg -Source https://nuget.pkg.github.com/$PKG_SOURCE_USER/index.json -UserName $GITHUB_ACTOR -Password ${{ secrets.GITHUB_TOKEN }} -StorePasswordInClearText