Skip to content

Commit

Permalink
fix release actions
Browse files Browse the repository at this point in the history
  • Loading branch information
amancevice committed Sep 6, 2023
1 parent fc36195 commit eb45675
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/actions/setup-rubygems/action.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,18 @@
name: Test
description: Run tests
name: Setup RubyGems
description: Setup RubyGems credentials
inputs:
ruby-version:
description: Ruby version
required: true
rubygems_api_key:
description: RubyGems API key
required: true
runs:
using: composite
steps:
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ inputs.ruby-version }}
- run: mkdir -p ~/.gem
shell: bash
- run: |
Expand All @@ -15,3 +21,5 @@ runs:
:rubygems_api_key: ${{ inputs.rubygems_api_key }}
YAML
shell: bash
- run: chmod 0600 ~/.gem/credentials
shell: bash
3 changes: 3 additions & 0 deletions .github/workflows/test-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@ jobs:
- test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/setup-rubygems
with:
ruby-version: "3.2"
rubygems_api_key: ${{ secrets.RUBYGEMS_API_KEY }}
- run: bundle install
- run: bundle exec rake gem:push

0 comments on commit eb45675

Please sign in to comment.