Skip to content

Commit

Permalink
Merge pull request #2 from solarwinds/package-workflow
Browse files Browse the repository at this point in the history
NH-55892 fix the gem name
  • Loading branch information
xuan-cao-swi authored Jan 8, 2024
2 parents 10eb21a + c741105 commit bc161c7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/script/sw_build_and_push_gem.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/sh

set -e

GEM_NAME="$1"

case $GEM_NAME in
Expand Down Expand Up @@ -32,7 +34,6 @@ gem_version=$(grep -E "VERSION\s*=\s*'[^']+'" "$found_file" | awk -F "'" '{print

# build and push gem
gem build "opentelemetry-$GEM_NAME.gemspec"
gem push --key github --host https://rubygems.pkg.github.com/solarwinds "opentelemetry-instrumentation-$GEM_NAME-$gem_version.gem"
gem push --key github --host https://rubygems.pkg.github.com/solarwinds "opentelemetry-$GEM_NAME-$gem_version.gem"

# finished
echo "Finished"

0 comments on commit bc161c7

Please sign in to comment.