Release #58
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 | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| semver: | |
| description: Bump | |
| required: true | |
| type: choice | |
| options: | |
| - major | |
| - minor | |
| - patch | |
| jobs: | |
| release: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - | |
| name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| ssh-key: ${{ secrets.RELEASE_SSH_KEY }} | |
| - | |
| name: Set up Ruby 3.4 | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: 3.4 | |
| bundler-cache: true | |
| - | |
| name: Update version | |
| run: | | |
| git config user.name github-actions | |
| git config user.email [email protected] | |
| bundle config unset deployment | |
| bundle exec rake "version[${{ inputs.semver }}]" | |
| - | |
| name: Build and push gem | |
| run: bundle exec rake release | |
| env: | |
| GEM_HOST_API_KEY: ${{ secrets.RUBYGEMS_TOKEN }} |