Skip to content

Commit

Permalink
Merge pull request #63 from aristotelesbr/development
Browse files Browse the repository at this point in the history
chore: update publish.yaml
  • Loading branch information
aristotelesbr authored Sep 29, 2024
2 parents 6d42a24 + b4ed9e8 commit dfc6ffd
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,30 +8,31 @@ on:
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: Set up RubyGems credentials
env:
RUBYGEMS_API_KEY: ${{ secrets.RUBYGEMS_API_KEY }}
run: |
mkdir -p ~/.gem
echo -e "---\n:rubygems_api_key: $RUBYGEMS_API_KEY" > ~/.gem/credentials
chmod 0600 ~/.gem/credentials
- name: Push gem to RubyGems
env:
RUBYGEMS_HOST: "https://rubygems.org"
Expand All @@ -40,3 +41,4 @@ jobs:
cat ~/.gem/credentials | head -c 50
ls *.gem
gem push $(ls *.gem)

0 comments on commit dfc6ffd

Please sign in to comment.