Skip to content
This repository has been archived by the owner on Aug 30, 2022. It is now read-only.
/ action-publish-gem Public archive
generated from actions/container-action

⚙️ A GitHub Action to build and publish a Ruby gem

License

Notifications You must be signed in to change notification settings

dawidd6/action-publish-gem

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

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Publish gem Github Action

An action that builds and then publishes a Ruby gem to rubygems.org or GitHub Packages.

Will find every .gemspec file in current directory and publish a gem for it.

Runs on ubuntu and macos.

Usage

on:
  push:
    tags:
      - '*'

---

- name: Publish gem
  uses: dawidd6/action-publish-gem@v1
  with:
    # Optional, will publish to RubyGems if specified
    api_key: ${{secrets.RUBYGEMS_API_KEY}}
    # Optional, will publish to GitHub Packages if specified
    github_token: ${{secrets.GITHUB_TOKEN}}

It is possible to publish both to RubyGems and GitHub Packages