Release Gem #1
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: Release Gem | |
| on: | |
| workflow_dispatch: | |
| # release: | |
| # types: | |
| # - created | |
| concurrency: | |
| group: ${{ github.sha }} | |
| cancel-in-progress: true | |
| jobs: | |
| push: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| id-token: write | |
| # If you configured a GitHub environment on RubyGems, you must use it here. | |
| environment: release | |
| steps: | |
| # Set up | |
| - uses: actions/checkout@v5 | |
| with: | |
| persist-credentials: false | |
| - name: Set up Ruby | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| bundler-cache: true | |
| ruby-version: ruby | |
| - name: Release Gem | |
| if: startsWith(github.ref, 'refs/tags/v') | |
| uses: rubygems/release-gem@v1 |