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

Automate Rubygems Releases with Actions #369

Merged
merged 2 commits into from
Feb 21, 2019
Merged

Automate Rubygems Releases with Actions #369

merged 2 commits into from
Feb 21, 2019

Conversation

cadwallion
Copy link
Collaborator

This adds a GitHub Actions workflow for code pushes. I created a Custom Action that handles triggering release commands. If a tag is pushed with a version, both the dotenv and dotenv-rails gems will be published to Rubygems.org. Note: since Actions only supports 'push' events in the beta, you have to tag and specifically push the tag, instead of using git push --tags for this to work.

New Release Process

  1. Bump the version, Commit
  2. git tag vX.Y.Z
  3. git push origin vX.Y.Z
  4. Workflow will detect the push event was on a version tag, trigger release

Completes #367

//cc @joelvh

This adds a GitHub Actions workflow to Dotenv for code pushes.  If a tag is pushed with a version, both the dotenv and dotenv-rails gems will be published to Rubygems.org.  Note: since Actions only supports 'push' events in the beta, you have to tag and specifically push the tag, instead of using `git push --tags` for this to work.
Copy link
Collaborator

@jonmagic jonmagic left a comment

Choose a reason for hiding this comment

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

Nice! Excited to see how actions are used in practice 🤘

The `release` event for publish repositories was just opened up.  This switches the flow to release, not push, so we can remove the filter action.
@cadwallion
Copy link
Collaborator Author

Going to merge this and this will get its first test in the wild tomorrow. 😄

@cadwallion cadwallion merged commit 4168b83 into master Feb 21, 2019
@cadwallion cadwallion deleted the github-actions branch February 21, 2019 03:16
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.

2 participants