Skip to content

Upload historic NuGet packages without RepositoryUrl #24920

Answered by jcansdale
MaxHorstmann asked this question in Actions
Discussion options

You must be logged in to vote

Hi @MaxHorstmann,

MaxHorstmann:

How can we upload historic NuGet packages?

I’ve written a .NET Core tool for working with the GitHub Package Registry, that can be used to upload historic NuGet packages.

You can install the tool like this:

$ dotnet tool install gpr -g

When pushing a package, you can provide a RepositoryUrl (like you suggested). You can use it like this:

$ gpr push path/to/*.nupkg --repository <OWNER/REPO_NAME> -k <PAT>

You can also do a batch upload like this:

$ gpr push 'path/to/**/*.nupkg' --repository <OWNER/REPO_NAME> -k <PAT>

(Your PAT will need the repo and read:packages scopes)

You can find more information about the tool here:

github.com

jcansdale/gpr

A .N…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Packages Host your dependencies, libraries, and production-ready code, right from your repository Product Feedback
2 participants