From 8bfa2e08cbde81ec70e4fbebaca2d5f06befb393 Mon Sep 17 00:00:00 2001 From: sangeet-joy_xero Date: Wed, 23 Oct 2024 13:08:30 +0530 Subject: [PATCH] ci: testing the success flow --- .github/workflows/publish.yml | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index f23bf1e1..378f1db8 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -2,6 +2,9 @@ name: Publish on: release: types: [published] + pull_request: + branches: + - master jobs: publish: @@ -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