Skip to content

Release gem on GitHub #712

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

Merged
merged 3 commits into from
Nov 28, 2024
Merged

Release gem on GitHub #712

merged 3 commits into from
Nov 28, 2024

Conversation

erickguan
Copy link
Contributor

Fixes #692

This should help release the gem on GitHub. When release, you can dispatch the release workflow on GitHub Actions. Choose "Release" workflow, and run it. The workflow will:

  1. Build and push the gem with the version defined in rpush/version.rb.
  2. Tag the repository with v<version>. e.g., v9.2.0.
  3. GitHub will create a release with release notes.

Because the release workflow uses an action called rubygems/release-gem, to publish the gem via GitHub, the gem owners must configure the "Trusted publishing". You must add GitHub as a trusted platform.


Other changes:

  1. I also bumped the Ruby in the development environment to 3.2 with gems including pg, mysql2 to resolve a few build problems on my development environment.
  2. I also use Gemfile for development dependencies as Rubocop suggests.
  3. I updated tests.yml to run the latest Ubuntu. This can be further improved to use GitHub repo's ruleset to set certain or all tests must pass for PR to be able to merge. Happy to help on this area too.

@benlangfeld
Copy link
Collaborator

benlangfeld commented Oct 30, 2024

I also use Gemfile for development dependencies as Rubocop suggests.

Let's move this out into a separate change, a-lá #696

I updated Ruby to 3.2 because it's much easier to compile 3.2+ than 3.1
on my machine. I also locked pg gem to help my use bundle install.
@erickguan
Copy link
Contributor Author

Removed. I kept the Ruby 3.2 and MySQL updates to help me in development. Feel free to remove it if you were thinking of something else.

@benlangfeld benlangfeld merged commit 4e9ca73 into rpush:master Nov 28, 2024
40 checks passed
@benlangfeld
Copy link
Collaborator

I'm afraid I just couldn't get this to work.

https://github.com/rpush/rpush/actions/runs/12072998016/job/33668193629

rubygems/rubygems#7178

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.

Automate the release process
2 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy