Sha256: c070c7139614290da94b12ac6f46f9fec2261dbcc8a6f55e9ba762df25e72e6a

Contents?: true

Size: 759 Bytes

Versions: 2

Compression:

Stored size: 759 Bytes

Contents

#!/usr/bin/env bash

set -e

SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
ROOT_DIR="${SCRIPT_DIR}/../"
cd "${ROOT_DIR}"

print_usage() {
  cat <<EOF
Usage: $(basename "$0") tag
Tag example: v1.2.3
EOF
}

if [[ $# != 1 ]]
then
  print_usage
  exit 1
fi

release_tag="$1"
# without the starting 'v'
release_version=$(echo "$release_tag" | cut -c2-)

create_gh_release() {
  echo ">>> 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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
splunk-otel-1.3.0 scripts/release.sh
splunk-otel-1.1.3 scripts/release.sh