Skip to content

Commit

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

jobs:
publish:
Expand Down Expand Up @@ -34,19 +37,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 8bfa2e0

Please sign in to comment.