Skip to content

Commit

Permalink
update GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
amancevice committed Sep 9, 2024
1 parent 6871e42 commit 2ee7430
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 6 deletions.
18 changes: 18 additions & 0 deletions .github/actions/setup-rubygems/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Setup RubyGems
description: Setup RubyGems credentials
inputs:
api-key:
description: RubyGems API key
required: true
runs:
using: composite
steps:
- name: setup rubygems
shell: bash
run: |
mkdir -p ~/.gem
cat <<-YAML > ~/.gem/credentials
---
:rubygems_api_key: ${{ inputs.rubygems_api_key }}
YAML
chmod 0600 ~/.gem/credentials
11 changes: 5 additions & 6 deletions .github/workflows/test-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,10 @@ jobs:
strategy:
matrix:
ruby-version:
- "2.7"
- "3.1"
- "3.2"
- "3.3"
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby-version }}
Expand All @@ -38,11 +37,11 @@ jobs:
- test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: "3.2"
- uses: kickstarter/actions/setup-rubygems@main
ruby-version: "3.3"
- uses: ./.github/actions/setup-rubygems@main
with:
api-key: ${{ secrets.RUBYGEMS_API_KEY }}
- run: bundle install
Expand Down

0 comments on commit 2ee7430

Please sign in to comment.