Skip to content

Commit

Permalink
ci: reverted the changes
Browse files Browse the repository at this point in the history
  • Loading branch information
sangeet-joy_xero committed Oct 23, 2024
1 parent 8bfa2e0 commit 762230c
Showing 1 changed file with 12 additions and 15 deletions.
27 changes: 12 additions & 15 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ name: Publish
on:
release:
types: [published]
pull_request:
branches:
- master

jobs:
publish:
Expand Down Expand Up @@ -37,19 +34,19 @@ jobs:
ruby-version: '3.2.0'
bundler-cache: true

# - name: Install dependencies
# run: bundle install
# working-directory: xero-ruby
- name: Install dependencies
run: bundle install
working-directory: xero-ruby

# - name: Publish to Ruby
# env:
# GEM_HOST_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
- name: Publish to Ruby
env:
GEM_HOST_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

notify-slack-on-success:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 762230c

Please sign in to comment.