Skip to content

Ruby Gem

Ruby Gem #1

Workflow file for this run

name: Ruby Gem
on:
workflow_dispatch:
jobs:
build:
name: Build + Publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
- name: Publish to RubyGems
run: |
mkdir -p $HOME/.gem
touch $HOME/.gem/credentials
chmod 0600 $HOME/.gem/credentials
printf -- "---\n:rubygems_api_key: ${HSLUV_RUBYGEMS_API_KEY}\n" > $HOME/.gem/credentials
gem build *.gemspec
gem push *.gem
env:
HSLUV_RUBYGEMS_API_KEY: "${{ secrets.HSLUV_RUBYGEMS_API_KEY }}"