An open API service indexing awesome lists of open source software.

https://github.com/cucumber/action-publish-rubygem

GitHub Action to publish a Ruby Gem
https://github.com/cucumber/action-publish-rubygem

github-actions polyglot-release ruby

Last synced: 10 months ago
JSON representation

GitHub Action to publish a Ruby Gem

Awesome Lists containing this project

README

          

[![Test](https://github.com/cucumber/action-publish-rubygem/actions/workflows/test.yaml/badge.svg)](https://github.com/cucumber/action-publish-rubygem/actions/workflows/test.yaml)

# publish-rubygem

Builds and publishes a Ruby Gem to https://rubygems.org

Very simple, just uses a couple of `gem` commands. Needs Ruby to be installed first.

## Inputs:

* `rubygems_api_key`
* `working_directory` (default `.`)

## Example:

````yaml
name: Release

on:
push:
branches: [release/*]

jobs:
release:
runs-on: ubuntu-latest
environment: Release
permissions:
contents: write
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: 3.0.2
bundler-cache: true
- uses: cucumber/action-publish-rubygem@v1.0.0
with:
rubygems_api_key: ${{ secrets.RUBYGEMS_API_KEY }}
````