# Template Ruby build # # This template allows you to validate your Ruby code. # The workflow allows running tests and release on master branch. # Requires environment variables to be configured: # RUBYGEMS_API_KEY: RubyGem.org API Key image: ruby:2.7 pipelines: tags: v*: - step: name: Build and test script: # Install gems - bundle install # Run tests - bundle exec rake test - step: name: Release gem script: # Install gems - bundle install # Build gem - gem build hello_world_hn.gemspec # Publish gem - GEM_HOST_API_KEY=$RUBYGEMS_API_KEY gem push hello_world_hn-*.gem --host https://rubygems.org/