9191 VcpkgOSTarget : ${{ matrix.vcpkg-os-target }}
9292 VcpkgPlatformTarget : ${{ matrix.vcpkg-platform-target }}
9393 GITHUB_PACKAGES_FEED : https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json
94- VCPKG_BINARY_SOURCES : " clear;nuget,https://nuget.pkg.github.com/ ${{ github.repository_owner }}/index.json ,readwrite"
94+ VCPKG_BINARY_SOURCES : " clear;nugetconfig, ${{ github.workspace }}/Natives/NetCord.Natives/vcpkg-nuget.config ,readwrite"
9595 Configuration : Release
9696 TargetRID : ${{ matrix.rid }}
9797 DotnetVerbose : ${{ github.event.inputs.MSBuildVerbosity || inputs.MSBuildVerbosity || 'Minimal' }}
@@ -132,10 +132,12 @@ jobs:
132132 -UserName "${{ github.repository_owner }}" `
133133 -Password "${{ secrets.VCPKG_NUGET_TOKEN }}" `
134134 -StorePasswordInClearText
135+ -ConfigFile "${{ github.workspace }}\Natives\NetCord.Natives\vcpkg-nuget.config"
135136
136137 # Set the api key for the GitHub Packages feed
137138 & $nugetPath setapikey "${{ secrets.VCPKG_NUGET_TOKEN }}" `
138- -Source "${{ env.GITHUB_PACKAGES_FEED }}"
139+ -Source "${{ env.GITHUB_PACKAGES_FEED }}" `
140+ -ConfigFile "${{ github.workspace }}\Natives\NetCord.Natives\vcpkg-nuget.config"
139141
140142 - name : Setup vcpkg (Nix)
141143 if : ${{ matrix.use-nix }}
@@ -144,18 +146,20 @@ jobs:
144146 "${{ env.VCPKG_ROOT }}/bootstrap-vcpkg.sh" -disableMetrics
145147
146148 # Capture the nuget.exe path to a local variable
147- NUGET_PATH=$("${{ env.VCPKG_ROOT }}/vcpkg" fetch nuget | tail -n 1)
149+ export NUGET_PATH=$("${{ env.VCPKG_ROOT }}/vcpkg" fetch nuget | tail -n 1)
148150
149151 mono "$NUGET_PATH" sources add \
150152 -Source "${{ env.GITHUB_PACKAGES_FEED }}" \
151153 -Name "GithubPackages" \
152154 -UserName "${{ github.repository_owner }}" \
153155 -Password "${{ secrets.VCPKG_NUGET_TOKEN }}" \
154- -StorePasswordInClearText
156+ -StorePasswordInClearText \
157+ -ConfigFile "${{ github.workspace }}/Natives/NetCord.Natives/vcpkg-nuget.config"
155158
156159 # Set the api key for the GitHub Packages feed
157160 mono "$NUGET_PATH" setapikey "${{ secrets.VCPKG_NUGET_TOKEN }}" \
158- -Source "${{ env.GITHUB_PACKAGES_FEED }}"
161+ -Source "${{ env.GITHUB_PACKAGES_FEED }}" \
162+ -ConfigFile "${{ github.workspace }}/Natives/NetCord.Natives/vcpkg-nuget.config"
159163
160164 - name : Setup .NET Core SDK (Windows)
161165 if : ${{ !matrix.use-nix }}
0 commit comments