Skip to content

Commit

Permalink
Merge pull request #57 from aristotelesbr/development
Browse files Browse the repository at this point in the history
chore: add publish gem version on github actions
  • Loading branch information
aristotelesbr authored Sep 29, 2024
2 parents 7d40296 + 5d78f72 commit bfe1854
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Publish Gem

on:
push:
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: |
ls *.gem
gem push $(ls *.gem)

0 comments on commit bfe1854

Please sign in to comment.