eggplants/tsumanne

View on GitHub
.github/workflows/release.yml

Summary

Maintainability
Test Coverage
name: Release Gem

on:
  push:
    tags:
      - "v*"

jobs:
  release:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v4
    - uses: ruby/setup-ruby@v1
      with:
        bundler-cache: true
    - run: bundle exec rake
    - run: |
        git config --global user.email "${{ secrets.RUBYGEMS_EMAIL }}"
        git config --global user.name "${{ secrets.RUBYGEMS_USERNAME }}"
    - run: bundle exec rake release
      env:
        GEM_HOST_API_KEY: ${{ secrets.RUBYGEMS_API_KEY }}
    - id: create_release
      uses: actions/create-release@v1
      env:
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
      with:
        tag_name: ${{ github.ref }}
        release_name: Release ${{ github.ref }}
        draft: false
        prerelease: false