Skip to content

Ruby Gem to SolarWinds Github Package #1

Ruby Gem to SolarWinds Github Package

Ruby Gem to SolarWinds Github Package #1

name: Ruby Gem to SolarWinds Github Package
on:
workflow_dispatch:
inputs:
gem_name:
required: true
description: 'The name of gem you want to publish (without opentelemetry-instrumentation e.g. aws_sdk)'
jobs:
build:
name: Build + Publish to Github Package
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Ruby 3.1 and bundle
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.1
- name: Setup secrets
run: |
mkdir ~/.gem
echo -e "---\n:github: Bearer $GITHUB_SECRET_TOKEN" >> ~/.gem/credentials
chmod 0600 ~/.gem/credentials
env:
GITHUB_SECRET_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Build gem and publish to github package
id: gemstep
run: |
./script/sw_build_and_push_gem.sh ${{ github.event.inputs.gem_name }}