Push NuGet to GitHub Package Registry
I am unable to push NuGet packages to the GitHub Package Registry because it requires a NuGet source to be created instead of just passing the token. I found the following issues:
https://github.com/NuGet/Home/issues/8580
https://github.com/NuGet/Home/issues/4126
So it appears that it's a limitation of the GitHub Package Registry for NuGet that requires a package source to be created with a username set. Here are the instructions on the GitHub site:
https://help.github.com/en/articles/configuring-nuget-for-use-with-github-package-registry
Is there any chance something could be done on the AppVeyor side to make it so that a source is created with a username and then published?
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by Feodor Fitsner on 22 Sep, 2019 07:23 PM
Hi Eric,
How do you currently publish the package: via Environments or deployment step during the build?
2 Posted by Eric J. Smith on 23 Sep, 2019 02:12 AM
I’m using Environments to deploy.
Support Staff 3 Posted by Feodor Fitsner on 23 Sep, 2019 02:19 AM
OK, thanks. Will take a look how publishing could be improved to support GPR.
Support Staff 4 Posted by Feodor Fitsner on 24 Sep, 2019 11:43 PM
We've implemented GPR support. This will be deployed to the production later this week. Please watch this issue: https://github.com/appveyor/ci/issues/3104
5 Posted by Eric J. Smith on 25 Sep, 2019 04:22 PM
That's awesome! Thank you.
6 Posted by Eric J. Smith on 30 Sep, 2019 03:25 PM
Did this make it out last week? I guess the issue will be marked as closed when it is out there?
Support Staff 7 Posted by Feodor Fitsner on 30 Sep, 2019 04:50 PM
Hi Eric,
Yes, that was deployed yesterday and you can give it a try. There is a new "Username" field on NuGet environment settings. Once specified deployment provider will be using Basic auth to push the package.
Some notes:
https://nuget.pkg.github.com/OWNER/index.json
Let me know how that worked.
8 Posted by Eric J. Smith on 30 Sep, 2019 04:53 PM
Hmm... I do not see a username setting for my NuGet environment. I tried creating a new one as well and I still don't see it.
9 Posted by Eric J. Smith on 30 Sep, 2019 04:55 PM
Well, I just did a hard refresh and I see it now. I will give it a try.
10 Posted by Eric J. Smith on 30 Sep, 2019 04:57 PM
That worked! Thank you!
Support Staff 11 Posted by Feodor Fitsner on 30 Sep, 2019 05:02 PM
Cool, thanks for the update!
Feodor Fitsner closed this discussion on 03 Apr, 2020 06:45 PM.