Skip to content

Commit

Permalink
Update publish gem workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
projkov authored Jan 22, 2025
1 parent beeeb99 commit 90c2b93
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions .github/workflows/publish-gem.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,18 @@ jobs:
packages: write
contents: read
steps:
- uses: actions/checkout@v2
- name: Rubygems release
uses: ActionsToolbox/gem-build-and-release-action@master
env:
RUBYGEMS_API_KEY: ${{secrets.RUBYGEMSKEY}}
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Ruby 3.1.2
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.1.2
- name: Install dependencies
run: bundle install
- name: Build gem
run: gem build *.gemspec
- name: Push to RubyGems
env:
RUBYGEMS_API_KEY: ${{ secrets.RUBYGEMS_API_KEY }}
run: |
gem push *.gem

0 comments on commit 90c2b93

Please sign in to comment.