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
- Host: GitHub
- URL: https://github.com/cucumber/action-publish-rubygem
- Owner: cucumber
- License: mit
- Created: 2021-08-14T00:36:44.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-07-24T06:50:13.000Z (over 1 year ago)
- Last Synced: 2025-03-20T08:08:33.430Z (10 months ago)
- Topics: github-actions, polyglot-release, ruby
- Language: Ruby
- Homepage:
- Size: 37.1 KB
- Stars: 1
- Watchers: 5
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
[](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 }}
````