From dc995c4fda488fc3cb4d5afcf008f749e9154f38 Mon Sep 17 00:00:00 2001 From: Deep Singhvi Date: Mon, 25 Aug 2025 13:00:53 -0700 Subject: [PATCH] chore: publish gem on tags --- .github/workflows/ci.yml | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 964ffeff..d35f882e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -99,8 +99,7 @@ jobs: gem-publish: runs-on: ubuntu-latest - if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master' - needs: [test, lint, security] + if: github.event_name == 'push' && contains(github.ref, 'refs/tags/') steps: - name: Checkout repository uses: actions/checkout@v4 @@ -122,9 +121,8 @@ jobs: run: | bundle exec rake build - # TODO: Uncomment this when we are ready to publish to RubyGems - # - name: Publish to RubyGems - # run: | - # gem push pkg/*.gem - # env: - # RUBYGEMS_API_KEY: ${{ secrets.RUBYGEMS_API_KEY }} + - name: Publish to RubyGems + run: | + gem push pkg/*.gem + env: + RUBYGEMS_API_KEY: ${{ secrets.RUBYGEMS_API_KEY }}