Version 4.0.0 #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 | |
| # We use GitHub Environments "rubygems.org" to ensure that version tags are | |
| # on the master branch and to require manual approval. | |
| concurrency: | |
| group: '${{ github.workflow }}' | |
| cancel-in-progress: false | |
| on: | |
| push: | |
| branches: | |
| - master | |
| paths: | |
| - lib/tokite/version.rb | |
| jobs: | |
| push: | |
| environment: rubygems.org | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write # To push a version tag by `rake release` in rubygems/release-gem | |
| id-token: write # To push gems to RubyGems.org with trusted publishing | |
| steps: | |
| - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | |
| with: | |
| persist-credentials: false | |
| - uses: ruby/setup-ruby@90be1154f987f4dc0fe0dd0feedac9e473aa4ba8 # v1.286.0 | |
| with: | |
| bundler-cache: true | |
| - uses: rubygems/release-gem@1c162a739e8b4cb21a676e97b087e8268d8fc40b # v1.1.2 |