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

[FEATURE] Add automatic gem release #122

Merged
merged 1 commit into from
Jan 26, 2021
Merged

Conversation

oliverklee
Copy link
Collaborator

This new GitHub Actions workflow will automatically publish the
gem to RubyGems when a new release is tagged with the v prefix,
e.g., v5.0.0.

For authentication, there needs to be a secret with the key
RUBYGEMS_API_KEY configured in the GitHub repository configuration.
The stored rubygems.org API key needs to have gem publication permissions,
and two-factor authentication for the corresponding rubygems.org account
should only be enabled for the UI, but must not be enabled for the API
(as there is no way to enter the second factor when the GitHub action
is run).

This new GitHub Actions workflow will automatically publish the
gem to RubyGems when a new release is tagged with the `v` prefix,
e.g., `v5.0.0`.

For authentication, there needs to be a secret with the key
`RUBYGEMS_API_KEY` configured in the GitHub repository configuration.
The stored rubygems.org API key needs to have gem publication permissions,
and two-factor authentication for the corresponding rubygems.org account
should only be enabled for the UI, but must not be enabled for the API
(as there is no way to enter the second factor when the GitHub action
is run).
@oliverklee oliverklee added the feature new functionality label Jan 22, 2021
@oliverklee oliverklee requested a review from lwe January 22, 2021 19:19
@oliverklee oliverklee self-assigned this Jan 22, 2021
@oliverklee
Copy link
Collaborator Author

The breakage is due to the not-so-well-working RubyGems action which I've replaced in #121.

@lwe
Copy link
Owner

lwe commented Jan 26, 2021

FYI, I've added a secret for RUBYGEMS_API_KEY, which should have the proper permissions. 🤞

Copy link
Owner

@lwe lwe left a comment

Choose a reason for hiding this comment

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

Thanks, looking cool!

@oliverklee oliverklee merged commit d8ee8be into main Jan 26, 2021
@oliverklee oliverklee deleted the feature/automatic-release branch January 26, 2021 14:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature new functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants