Push gem to RubyGems.org #7
This file contains hidden or 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: Push gem to RubyGems.org | |
| on: | |
| workflow_dispatch: | |
| jobs: | |
| push: | |
| name: Push gem to RubyGems.org | |
| runs-on: ubuntu-latest | |
| environment: | |
| name: production | |
| permissions: | |
| id-token: write | |
| contents: write | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| with: | |
| persist-credentials: false | |
| - name: Set up Ruby | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| bundler-cache: true | |
| - name: Release gem | |
| uses: rubygems/release-gem@v1 |