@@ -174,15 +174,15 @@ jobs:
174174 - name : Install mono
175175 run : brew install mono
176176
177- # - name: "Setup NuGet Credentials"
178- # run: |
179- # NUGET_PATH="$($VCPKG_ROOT/vcpkg fetch nuget | tail -n1)"
180- # mono "$NUGET_PATH" sources add \
181- # -Source "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" \
182- # -StorePasswordInClearText \
183- # -Name "GitHub" \
184- # -UserName "${{ github.repository_owner }}" \
185- # -Password "${{ secrets.GITHUB_TOKEN }}"
177+ - name : " Setup NuGet Credentials"
178+ run : |
179+ NUGET_PATH="$($VCPKG_ROOT/vcpkg fetch nuget | tail -n1)"
180+ mono "$NUGET_PATH" sources add \
181+ -Source "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" \
182+ -StorePasswordInClearText \
183+ -Name "GitHub" \
184+ -UserName "${{ github.repository_owner }}" \
185+ -Password "${{ secrets.GITHUB_TOKEN }}"
186186
187187 - name : " Install dependencies from vcpkg"
188188 run : " .github/scripts/install-vcpkg-macos.bash"
@@ -277,17 +277,17 @@ jobs:
277277 - name : Install mono
278278 run : sudo apt-get -y install mono-devel
279279
280- # - name: "Setup NuGet Credentials"
281- # run: |
282- # NUGET_PATH="$($VCPKG_ROOT/vcpkg fetch nuget | tail -n1)"
283- # mono "$NUGET_PATH" sources add \
284- # -Source "https://nuget.pkg.github.com/kaito-tokyo /index.json" \
285- # -StorePasswordInClearText \
286- # -Name "GitHub" \
287- # -UserName "kaito-tokyo " \
288- # -Password "${{ secrets.GITHUB_TOKEN }}"
289- # mono "$NUGET_PATH" setapikey "${{ secrets.GITHUB_TOKEN }}" \
290- # -Source "https://nuget.pkg.github.com/kaito-tokyo /index.json"
280+ - name : " Setup NuGet Credentials"
281+ run : |
282+ NUGET_PATH="$($VCPKG_ROOT/vcpkg fetch nuget | tail -n1)"
283+ mono "$NUGET_PATH" sources add \
284+ -Source "https://nuget.pkg.github.com/${{ github.repository_owner }} /index.json" \
285+ -StorePasswordInClearText \
286+ -Name "GitHub" \
287+ -UserName "${{ github.repository_owner }} " \
288+ -Password "${{ secrets.GITHUB_TOKEN }}"
289+ mono "$NUGET_PATH" setapikey "${{ secrets.GITHUB_TOKEN }}" \
290+ -Source "https://nuget.pkg.github.com/${{ github.repository_owner }} /index.json"
291291
292292 - name : " Install dependencies from vcpkg"
293293 run : " $VCPKG_ROOT/vcpkg install --triplet x64-linux-obs"
@@ -370,19 +370,19 @@ jobs:
370370 run : |
371371 .\bootstrap-vcpkg.bat
372372
373- # - name: "Setup NuGet Credentials on Windows"
374- # shell: pwsh
375- # run: |
376- # $NUGET_EXE_PATH = & "${{ env.VCPKG_ROOT }}/vcpkg" fetch nuget | Select-Object -Last 1
373+ - name : " Setup NuGet Credentials on Windows"
374+ shell : pwsh
375+ run : |
376+ $NUGET_EXE_PATH = & "${{ env.VCPKG_ROOT }}/vcpkg" fetch nuget | Select-Object -Last 1
377377
378- # & $NUGET_EXE_PATH sources add `
379- # -Source "https://nuget.pkg.github.com/kaito-tokyo /index.json" `
380- # -StorePasswordInClearText `
381- # -Name "GitHub" `
382- # -UserName "kaito-tokyo " `
383- # -Password "${{ secrets.GITHUB_TOKEN }}"
384- # & $NUGET_EXE_PATH setapikey "${{ secrets.GITHUB_TOKEN }}" `
385- # -Source "https://nuget.pkg.github.com/kaito-tokyo /index.json"
378+ & $NUGET_EXE_PATH sources add `
379+ -Source "https://nuget.pkg.github.com/${{ github.repository_owner }} /index.json" `
380+ -StorePasswordInClearText `
381+ -Name "GitHub" `
382+ -UserName "${{ github.repository_owner }} " `
383+ -Password "${{ secrets.GITHUB_TOKEN }}"
384+ & $NUGET_EXE_PATH setapikey "${{ secrets.GITHUB_TOKEN }}" `
385+ -Source "https://nuget.pkg.github.com/${{ github.repository_owner }} /index.json"
386386
387387 - name : " Install dependencies from vcpkg"
388388 shell : bash
0 commit comments