Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release SDK - Publish Gem | |
on: | |
release: | |
types: [created] | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
id-token: write | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
bundler-cache: true | |
- 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@main | |
with: | |
role-to-assume: ${{ secrets.RUBYGEMS_API_KEY }} | |
- name: Publish gem to rubygems.org | |
shell: bash | |
run: gem push *.gem | |
- name: Wait for release to propagate | |
run: | | |
gem install rubygems-await |