Skip to content

v0.0.3

v0.0.3 #3

Workflow file for this run

name: Release to RubyGems
on:
release:
types: [published]
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633
- name: Install Ruby and gems
uses: ruby/setup-ruby@6bd3d993c602f6b675728ebaecb2b569ff86e99b
with:
bundler-cache: true
ruby-version: "3.2"
- name: Publish gem
run: |
umask 077
mkdir -p "$HOME/.gem"
printf -- "---\n:rubygems_api_key: ${RUBYGEMS_API_KEY}\n" > $HOME/.gem/credentials
gem build *.gemspec
gem push *.gem
rm -f "$HOME/.gem/credentials"
env:
RUBYGEMS_API_KEY: "${{secrets.RUBYGEMS_PUSH_API_KEY}}"