Skip to content

Commit

Permalink
adds push step
Browse files Browse the repository at this point in the history
  • Loading branch information
Vignesh Kennadi committed Sep 27, 2024
1 parent 2171411 commit 4990c90
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,12 @@ jobs:
run: bundle install
working-directory: xero-ruby

- name: Run Build
run: gem build
working-directory: xero-ruby

- name: Publish to Ruby
env:
RUBYGEMS_API_KEY: ${{ secrets.RUBYGEMS_API_KEY }}
run: |
gemspec_file=$(ls *.gemspec)
gem_file=$(gem build "$gemspec_file" | grep -o '[^ ]*\.gem')
echo "$gem_file"
gem push "$gem_file"
working-directory: xero-ruby

0 comments on commit 4990c90

Please sign in to comment.