Hello,
I am trying to set up Github actions to build my application and I followed the article at https://www.telerik.com/blogs/announcing-nuget-keys to configure the access to the telerik feed.
The action definition looks like this:
# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
name: .NET
on:
workflow_dispatch:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Restore NuGet Packages
run: dotnet restore ./MySolution.sln --configfile ./nuget.config -v detailed
env:
MY_API_KEY: ${{ secrets.TELERIK_NUGET_KEY }}
- name: Build
run: dotnet build ./MySolution.sln --no-restore
- name: Test
run: dotnet test MyTests/MyTests.csproj --no-build --verbosity normal
But there are the error on restoring the packages:
error NU1101: Unable to find package Telerik.Documents.Core. No packages exist with this id in source(s): C:\Program Files\dotnet\library-packs, MyTelerikFeed, nuget.org
error NU1101: Unable to find package Telerik.Documents.Fixed. No packages exist with this id in source(s): C:\Program Files\dotnet\library-packs, MyTelerikFeed, nuget.org
error NU1101: Unable to find package Telerik.Documents.Flow. No packages exist with this id in source(s): C:\Program Files\dotnet\library-packs, MyTelerikFeed, nuget.org
error NU1101: Unable to find package Telerik.Documents.Flow.FormatProviders.Pdf. No packages exist with this id in source(s): C:\Program Files\dotnet\library-packs, MyTelerikFeed, nuget.org
error NU1101: Unable to find package Telerik.Zip. No packages exist with this id in source(s): C:\Program Files\dotnet\library-packs, MyTelerikFeed, nuget.org
error NU1101: Unable to find package UI.for.WinForms.AllControls.Net60. No packages exist with this id in source(s): C:\Program Files\dotnet\library-packs, MyTelerikFeed, nuget.org
Any ideas on how to fix it?