Skip to content

Commit

Permalink
added environment
Browse files Browse the repository at this point in the history
  • Loading branch information
parthikmodi committed Jun 13, 2023
1 parent 9501a01 commit c58ccc3
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: speech_to_text gem release
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.0

- name: Install dependencies
run: bundle install

- name: Build gem
run: gem build *.gemspec

- name: Push gem
env:
RUBYGEMS_API_KEY: ${{secrets.RUBYGEMS_API_KEY}}
run: |
pwd
ls -la
filename=$(ls *.gem | head -n 1)
gem push "$filename"

0 comments on commit c58ccc3

Please sign in to comment.