Skip to content

Release Ruby gems with minimal tooling

License

Notifications You must be signed in to change notification settings

voxpupuli/ruby-release

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Ruby gem release

Release gems with Rubygem's trusted publishing using minimal tools. Unlike rubygems/release-gem this uses plain tools which avoids the need to install a while bundler environment.

It assumes you have a single gemspec file in your repository root.

Example usage

This assumes you push a tag and it releases to Rubygems. It also uses the release environment, which is optional but recommended.

---
name: Gem Release

on:
  push:
    tags:
      - '*'

jobs:
  release:
    name: Release gem
    runs-on: ubuntu-latest
    # Optional but recommended to use a specific environment
    environment: release
    # Prevent releases from forked repositories
    if: github.repository_owner == 'MyOwner'

    permissions:
      id-token: write

    steps:
      - uses: voxpupuli/ruby-release@v0

About

Release Ruby gems with minimal tooling

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published