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