Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Publish pre-release packages to github packages #784

Merged
merged 5 commits into from
Sep 9, 2020
Merged

Publish pre-release packages to github packages #784

merged 5 commits into from
Sep 9, 2020

Conversation

gkinsman
Copy link
Contributor

@gkinsman gkinsman commented Sep 9, 2020

Shall we try Github packages for pre-releases to make consuming them from tooling a little nicer than the zip artifacts?

@gkinsman gkinsman requested a review from a team as a code owner September 9, 2020 14:10
@ghost ghost requested a review from josephwoodward September 9, 2020 14:10
@codecov
Copy link

codecov bot commented Sep 9, 2020

Codecov Report

Merging #784 into master will decrease coverage by 0.21%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #784      +/-   ##
==========================================
- Coverage   82.01%   81.79%   -0.22%     
==========================================
  Files         108      108              
  Lines        2758     2758              
==========================================
- Hits         2262     2256       -6     
- Misses        496      502       +6     
Flag Coverage Δ
#linux 81.79% <ø> (-0.22%) ⬇️
#macos 49.26% <ø> (-0.04%) ⬇️
#windows 49.30% <ø> (+0.03%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...ustSaying/AwsTools/MessageHandling/SqsQueueBase.cs 75.00% <0.00%> (-4.32%) ⬇️
src/JustSaying/AwsTools/ErrorQueue.cs 96.00% <0.00%> (-4.00%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 19a6ede...68a31f3. Read the comment docs.

martincostello
martincostello previously approved these changes Sep 9, 2020
Copy link
Member

@martincostello martincostello left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great if it works, but I tried to get this working on some of my personal repos a few months ago and I couldn't ever get the upload to work.

.github/workflows/build.yml Outdated Show resolved Hide resolved
.github/workflows/build.yml Outdated Show resolved Hide resolved
@gkinsman
Copy link
Contributor Author

gkinsman commented Sep 9, 2020

Great if it works, but I tried to get this working on some of my personal repos a few months ago and I couldn't ever get the upload to work.

Ah fair - it looks like there's some reasonable docs around it now. Shall we merge it and see if we can get master pushing to packages?

@martincostello
Copy link
Member

Happy to merge to try it once it's green, but if it fails you might need to do a follow up to just comment it out.

@gkinsman
Copy link
Contributor Author

gkinsman commented Sep 9, 2020

Happy to merge to try it once it's green, but if it fails you might need to do a follow up to just comment it out.

Yep going to timebox this and revert it if I can't get it working 😁

martincostello
martincostello previously approved these changes Sep 9, 2020
@gkinsman
Copy link
Contributor Author

gkinsman commented Sep 9, 2020

I'm going to just set continue-on-error: true so its best effort

@slang25
Copy link
Member

slang25 commented Sep 9, 2020

Great idea. Who do we beg to make GitHub NuGet feeds public?

@gkinsman
Copy link
Contributor Author

gkinsman commented Sep 9, 2020

Great idea. Who do we beg to make GitHub NuGet feeds public?

They are public here, we just haven't published any yet :)

@slang25
Copy link
Member

slang25 commented Sep 9, 2020

No way, ok that's awesome! I thought GH had them private only, which would be a pain.

@martincostello
Copy link
Member

GitHub Packages is not available for private repositories on legacy per-repository billing plans.

We're good for public - for private, someone in the finance/procurement sphere will have to change the billing plan.

@gkinsman
Copy link
Contributor Author

gkinsman commented Sep 9, 2020

I don't understand why the coverage is failing now - it seems to think there are changes where there aren't any 🙃

image

@martincostello
Copy link
Member

The builds aren't 100% deterministic, so the coverage varies. Note that the coverage statuses aren't required.

martincostello
martincostello previously approved these changes Sep 9, 2020
.github/workflows/build.yml Outdated Show resolved Hide resolved
@gkinsman
Copy link
Contributor Author

gkinsman commented Sep 9, 2020

The builds aren't 100% deterministic, so the coverage varies. Note that the coverage statuses aren't required.

Oh righto, awesome. In that case this PR just needs your green tick please, and we can try it out :)

@gkinsman gkinsman merged commit d8ab104 into justeattakeaway:master Sep 9, 2020
@martincostello
Copy link
Member

Looks like the same sort of problems I was getting, where the responses aren't helpful at all:

https://github.com/justeat/JustSaying/runs/1091741953?check_suite_focus=true#step:8:8

@gkinsman
Copy link
Contributor Author

gkinsman commented Sep 9, 2020

Hmmm, if we want to keep going down this route, it looks like we might need to authenticate with GPR before attempting the push, as described here. There's an open issue on NuGet with sending the API key directly: NuGet/Home#8580.

@gkinsman
Copy link
Contributor Author

gkinsman commented Sep 9, 2020

@martincostello we explicitly specify nuget when pushing there so I think we could set this up and regular nuget push should still work

@martincostello
Copy link
Member

You can try that too, but I did a lot of banging my head against a wall trying to get all this working including explicitly configuring NuGet.exe and the .NET Core SDK 😅

@gkinsman
Copy link
Contributor Author

gkinsman commented Sep 9, 2020

You can try that too, but I did a lot of banging my head against a wall trying to get all this working including explicitly configuring NuGet.exe and the .NET Core SDK 😅

Yeah I'm ready to give up if this PR doesn't work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants