Skip to content

Pin Ruby version to 3.2.8 in workflow #2

Pin Ruby version to 3.2.8 in workflow

Pin Ruby version to 3.2.8 in workflow #2

Workflow file for this run

name: Publish RubyGem
on:
push:
tags:
- 'v*.*.*' # triggers on version tags like v1.2.3
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3 # checkout the repository
- uses: ruby/setup-ruby@v1
with:
ruby-version: '3.2.8' # specify exact Ruby version
bundler-cache: true # enable bundler caching
- name: Build gem # build the gem package
run: gem build api_solvecaptcha.gemspec
- name: Publish to RubyGems # push the gem to RubyGems.org
env:
RUBYGEMS_API_KEY: ${{ secrets.RUBYGEMS_API_KEY }}
run: gem push *.gem