Skip to content

Fern Ruby generator upgrade fixes #148

Fern Ruby generator upgrade fixes

Fern Ruby generator upgrade fixes #148

Workflow file for this run

name: Publish
on: [ push ]
jobs:
publish:
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
bundler-cache: true
- run: bundle install
- name: Rubocop
run: bundle exec rubocop
- name: Test
run: bundle exec ruby test/test_assemblyai.rb
env:
ASSEMBLYAI_API_KEY: ${{ secrets.ASSEMBLYAI_API_KEY }}
TEST_TRANSCRIPT_ID: ${{ secrets.TEST_TRANSCRIPT_ID }}
TEST_TRANSCRIPT_IDS: ${{ secrets.TEST_TRANSCRIPT_IDS }}
- name: Build and Push Gem
env:
GEM_HOST_API_KEY: ${{ secrets.RUBY_GEMS_API_KEY }}
run: |
gem build assemblyai.gemspec
gem push assemblyai-*.gem --host https://rubygems.org/