-
Notifications
You must be signed in to change notification settings - Fork 57
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
Add gem release --github #73
Conversation
Hey @svenfuchs ! Is there any plan to merge this feature? I want to use this gem for https://github.com/solidusio/solidus to make the release process easier and uniform. Part of our current releases workflow includes this step, and we'd be using Let me know if I can help to push this forward, thanks! |
707ae97
to
1b0e0dc
Compare
Rebase, fixed heredoc for Ruby 2.2 & all builds passed |
Not yet, but I'm still interested. Is there an easy way to run the gem from this branch locally? |
37b1fcd
to
f6f8146
Compare
f6f8146
to
55af839
Compare
Fixed several bugs like
I think there might be more bugs |
In your gem project's gem "gem-release", git: "https://github.com/svenfuchs/gem-release.git", branch: "sf-github-release" Make sure you use |
@PikachuEXE what I was trying to do is testing the gem locally without adding it to the bundle via the Gemfile. Do you think it's possible? Otherwise, I can definitely use |
Even I when I test local Just open a new branch and commit Gemfile changes on it |
@kennyadsl Got any progress on testing? |
@PikachuEXE I’m on vacation now and didn’t have the chance to test this yet, planning to give it a try when I come back in a couple of weeks. Will update here as well, thanks! |
@PikachuEXE I've just made the first test. I created this test repository https://github.com/kennyadsl/test_gem_release_gh (I can give you access if you want). Tried to run the first release with
And I get this error:
|
I think you are using old version of this branch |
That's what I did but it still keep If I try to add the last commit ref with ,
🤔 |
Did it, I needed to use a longer ref! |
@PikachuEXE I'm having the same error using the last commit ref: https://github.com/kennyadsl/test_gem_release_gh/blob/aee096975b3ef9999487bc3e5c9d67c76eb4e078/Gemfile.lock#L3 |
I've split the command into two separate ones (maybe the error is still there trying to use
|
If I understand it correctly You can run |
Got it! In my previous attempt (in January) I did setup bundle local to always use my local version of It's now working, I'll release a couple of test version for my test gem and will update here with results, thanks for your help! |
On a side note, I've noticed something unexpected: when I run:
it also creates new releases on GitHub. Not sure how since I didn't run the If I split the command:
I get this error:
Another thing: I think we should change the option |
Otherwise we'll have: ERROR: While executing gem ... (NameError) uninitialized constant Gem::Release::VERSION Did you mean? Gem::Release::Version Gem::Version Gem::VERSION
GitHub API URLs protocol is https so we have to explicitely set the client to use this option, otherwise we would have an error: ERROR: While executing gem ... (EOFError) end of file reached See also https://stackoverflow.com/a/9227933/1460504
I fixed a couple of issues with #84 but the release is still not created in GH and I'm trying to figure out why. Let me know if you have any idea. 🙂 |
There was a typo and that parameter is required to create the release.
This is the error:
and it was due to a typo in declaring the argument names. I fixed it in the attached PR and I am now able to create a release on GH! 🎉 |
Fix some issues with --github release
Let me work on it later this week (well Friday) |
Sorry, too many tasks this week |
Take your time, no hurry on my side. Thanks again for your help! |
I removed the conflicting cmd line argument (short one) like Please take a look and see what else is incorrect / missing |
@kennyadsl |
@PikachuEXE I tested this branch with
And almost everything worked well: Here's the command output:
As you can see, I'm seeing the error message, even when a Thanks! |
Just fixed expected status code in cd0ee56 |
I suppose I will release this next week unless there is something more to test/change |
Fine by me, thanks again, @PikachuEXE! |
Releasing this tomorrow |
Released as |
Untested ...
refs #62