Quantcast
Channel: Active questions tagged nuget-package - Stack Overflow
Viewing all articles
Browse latest Browse all 3067

Getting error when using GitHub Actions to push the nupkg to my GitHub packages

$
0
0

Question:

Im getting a "Specified source 'github' is invalid" error when trying to build and push a NuGet package to GitHub nuget Packages.

Does anyone know why? or, what the source should be, I cant see anything in the GitHub documentation about this value, or even the end url that will host my packages(im hoping it will just show in the packages tab when one is created)

Question Details:

I have just seen that you GitHub have Actions now, so you can get your code to build/test when changes are merged.

I have also seen that you can now also pubish a NuGet package and host it within GitHub too.

Looking at the screenshot below, it seems it should be quite easy to do

enter image description here

It took me a while to realize i needed to create an Action to put this code into... so here is my action code (yml)

enter image description here

now, this action runs when i commit, and it all passes until the last line, for pushing to github. I get an error "The specified source 'github' is invalid. Please provide a valid source"


Viewing all articles
Browse latest Browse all 3067

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>