Skip to content

Parse exception detail OR message #28

Parse exception detail OR message

Parse exception detail OR message #28

name: Release to Rubygems
on:
push:
branches:
- "master"
paths:
- "lib/ruby_snowflake/version.rb"
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@904f3fef85a9c80a3750cbe7d5159268fd5caa9f
with:
ruby-version: '3.0.6'
- name: Install dependencies
run: bundle install
- name: Publish to RubyGems
run: |
mkdir -p $HOME/.gem
touch $HOME/.gem/credentials
chmod 0600 $HOME/.gem/credentials
printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
gem build *.gemspec
gem push *.gem
env:
GEM_HOST_API_KEY: "${{secrets.RUBYGEMS_AUTH_TOKEN}}"