Sha256: d96e2e6e908791ac5e67518ce47e4969a7a9cf4acc378379a17242929c44c52c

Contents?: true

Size: 1.62 KB

Versions: 3

Compression:

Stored size: 1.62 KB

Contents

on:
  release:
    types: [released]

jobs:
  #Deprecating, incoming replacement for self-hosted mock service
  #test:
    #env:
    #  TELNYX_MOCK_OPEN_API_URI: https://raw.githubusercontent.com/team-telnyx/openapi/master/openapi/spec3.json
    #runs-on: ubuntu-latest
    #strategy:
    #  matrix:
    #    ruby: [ '3.0', '3.1', '3.2' ]
    #steps:
    #- uses: actions/checkout@v4
    #- name: Set up Ruby
    # To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
    # change this to (see https://github.com/ruby/setup-ruby#versioning):
    # uses: ruby/setup-ruby@v1
    # uses: ruby/setup-ruby@v1
    #  with:
    #    ruby-version: ${{ matrix.ruby }}
    #- name: Run Setup Script to install prism mock
    #  run: source ./.github/scripts/before_install.sh
    #  shell: bash
    #- name: Install dependencies
    #  run: bundle install
    #- name: Run tests
    #  run: bundle exec rake

  build_and_publish_gem:
    name: Build + Publish Gem
    runs-on: ubuntu-latest
    permissions:
      packages: write
      contents: read
    steps:
      - uses: actions/checkout@v2
      - name: Set up Ruby 3.0
        uses: ruby/setup-ruby@477b21f02be01bcb8030d50f37cfec92bfa615b6
        with:
          ruby-version: 3.0
      - run: bundle install
      - name: Publish to RubyGems
        run: |
          mkdir -p $HOME/.gem
          touch $HOME/.gem/credentials
          chmod 0600 $HOME/.gem/credentials
          printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
          gem build *.gemspec
          gem push *.gem
        env:
          GEM_HOST_API_KEY: "${{secrets.RUBYGEMS_API_KEY}}"

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
telnyx-3.0.5 .github/workflows/publish-gem-on-release.yml
telnyx-3.0.4 .github/workflows/publish-gem-on-release.yml
telnyx-3.0.3 .github/workflows/publish-gem-on-release.yml