SmoothJarManiac
SmoothJarManiac

Reputation: 53

Not able to publish a NuGet package to GitHub Packages

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 "https://nuget.pkg.github.com/<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.

Upvotes: 1

Views: 31

Answers (0)

Related Questions