Skip to content

Commit

Permalink
use in-house action to publish gem
Browse files Browse the repository at this point in the history
  • Loading branch information
juliocabrera820 committed May 3, 2024
1 parent cd7064c commit 0846c88
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,17 @@
name: Publish gem

on:
push:
pull_request:
branches: [main]

jobs:
publish:
name: Build and publish gem
runs-on: ubuntu-latest
strategy:
matrix:
ruby:
- "3.0.6"
steps:
- uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- name: Publish gem to Gh packages and RubyGems
uses: dawidd6/action-publish-gem@v1
uses: juliocabrera820/publish-ruby-gem-action@v1.0
with:
api_key: ${{secrets.RUBYGEMS_API_KEY}}
rubygems_api_key: ${{secrets.RUBYGEMS_API_KEY}}
github_token: ${{secrets.GITHUB_TOKEN}}

0 comments on commit 0846c88

Please sign in to comment.