#!/usr/bin/env bash set -e SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" ROOT_DIR="${SCRIPT_DIR}/../" cd "${ROOT_DIR}" print_usage() { cat <>> Creating GitHub release $release_tag ..." gh release create "$release_tag" \ --repo "signalfx/splunk-otel-ruby" \ --draft \ --title "Release $release_tag" } # the gem publish for the tag is the most important so do that first bundle install bundle exec rake build bundle exec gem push pkg/splunk-otel-${release_version}.gem create_gh_release