Skip to content

chore: add publish gem version on github actions #1

chore: add publish gem version on github actions

chore: add publish gem version on github actions #1

Workflow file for this run

name: Publish Gem
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
name: Ruby ${{ matrix.ruby }}
strategy:
matrix:
ruby:
- '3.2.2'
steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.2
bundler-cache: true
- name: Install bundler
run: gem install bundler
- name: Install dependencies
run: bundle install
- name: Build gem
run: gem build lennarb.gemspec
- name: Push gem to RubyGems
env:
RUBYGEMS_API_KEY: ${{ secrets.RUBYGEMS_API_KEY }}
run: |
gem push lennarb-*.gem