Skip to content

Commit

Permalink
[Fix] Generate gem ruby (#97)
Browse files Browse the repository at this point in the history
* feat: add process release

* fix: ajust

* fix: update ci

* fix: update-test

* Revert "fix: update-test"

This reverts commit 88a84b6.

* fix: update checkout

* fix: add login

* fix: update workflow release

* fix: update rakefile

* fix: update release
  • Loading branch information
kelvincarvalhosilva authored Jan 22, 2025
1 parent b4bea57 commit 4feec35
Showing 1 changed file with 28 additions and 9 deletions.
37 changes: 28 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,38 @@ on:
types: [created]

jobs:
push:
name: Push gem to RubyGems.org
release:
runs-on: ubuntu-latest

permissions:
id-token: write
contents: write

steps:
- uses: actions/checkout@v4
- name: Set up Ruby
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true

- uses: rubygems/release-gem@v1
- name: Install dependencies
run: bundle install

- name: Validate gemspec
run: gem build mercadopago.gemspec

- name: Build gem
shell: bash
run: gem build *.gemspec

- name: Configure RubyGems Credentials
uses: rubygems/configure-rubygems-credentials@v1.0.0
with:
api-token: ${{ secrets.RUBYGEMS_API_TOKEN }}

- name: Publish gem to rubygems.org
shell: bash
run: gem push *.gem

- name: Wait for release to propagate
run: |
gem install rubygems-await

0 comments on commit 4feec35

Please sign in to comment.