name: Release Gem on: workflow_dispatch jobs: publish: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - name: Set up Ruby uses: ruby/setup-ruby@v1 with: ruby-version: 3.0.0 - name: tests run: | gem install bundler -v 2.2.3 bundle install bundle exec rake - name: Run the publish task run: | git config --global user.email "daryl.findlay@songtradr.com" git config --global user.name "Daryl Findlay - Songtradr - GitHub Actions" bundle exec rake build bundle exec rake release env: RUBYGEMS_API_KEY: ${{ secrets.RUBYGEMS_API_KEY }}