Skip to content

v0.2.0

v0.2.0 #8

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@b4ffde65f46336ab88eb53be808477a3936bae11
- name: Install Ruby and gems
uses: ruby/setup-ruby@22fdc77bf4148f810455b226c90fb81b5cbc00a7
with:
bundler-cache: true
ruby-version: "3.3"
- 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}}"