Skip to content

Push Gem to RubyGem

Push Gem to RubyGem #6

name: Push Gem to RubyGem
on: workflow_dispatch
jobs:
release:
runs-on: ubuntu-latest
env:
GEM_HOST_API_KEY: ${{ secrets.RUBYGEMAPIKEY }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: ruby/setup-ruby@v1
with:
ruby-version: .ruby-version
bundler-cache: true
- name: Push to rubygems.org
run: |
gem build *.gemspec
gem push *.gem