Skip to content
box

GitHub Action

Build and publish gem

v1.0.1 Latest version

Build and publish gem

box

Build and publish gem

Publish gem in github packages and rubygems

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Build and publish gem

uses: juliocabrera820/[email protected]

Learn more about this action in juliocabrera820/publish-ruby-gem-action

Choose a version

Publish ruby gem action

Author [Languages] Stars

Action that builds a gem based on a gemspec and publishes to GitHub packages or Rubygems

Usage

---
- name: Publish gem to rubygems or gh packages
  uses: juliocabrera820/publish-ruby-gem-action@v1
  with:
    github_token: ${{secrets.GITHUB_TOKEN}}
    rubygems_api_key: ${{secrets.RUBYGEMS_API_KEY}}
    github_username: octocat # optional: default value is your username in github