Skip to content

Push to rubygems.org #5

Push to rubygems.org

Push to rubygems.org #5

Workflow file for this run

name: Push to rubygems.org
on:
workflow_dispatch:
inputs:
rubygems-otp-code:
description: RubyGems OTP code
required: true
type: string
email:
description: Your email
required: true
type: string
jobs:
release:
runs-on: ubuntu-latest
env:
GEM_HOST_API_KEY: ${{ secrets.GEM_HOST_API_KEY }}
GEM_HOST_OTP_CODE: ${{ github.event.inputs.rubygems-otp-code }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: true
- uses: ruby/setup-ruby@v1
with:
ruby-version: '3.1'
bundler-cache: true
- name: config
run: |
git config --global user.email ${{ github.event.inputs.email }}
git config --global user.name ${{ github.actor }}
- name: release
run: bundle exec rake release