admin管理员组

文章数量:1125076

I am trying to publish a NuGet packages to GitHub Packages following the exact steps shown here working-with-the-nuget-registry.

I first added the nuget source

dotnet nuget add source --username <github UserName> --password <PAT Token> --store-password-in-clear-text --name github "/<UserName>/index.json"

But when i try to push the Package using this command

nuget push "bin/Release/<packagename>.1.0.0.nupkg" --api-key <PAT Token> --source github

It gives me this error

Your request could not be authenticated by the GitHub Packages service. Please ensure your access token is valid and has the appropriate scopes configured.

I tried with giving the access token all the permission and its still not working.

本文标签: Not able to publish a NuGet package to GitHub PackagesStack Overflow