Skip to content

Commit f0ac90d

Browse files
authored
chore: publish gem on tags (#186)
1 parent c4681ac commit f0ac90d

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,7 @@ jobs:
9999
100100
gem-publish:
101101
runs-on: ubuntu-latest
102-
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master'
103-
needs: [test, lint, security]
102+
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
104103
steps:
105104
- name: Checkout repository
106105
uses: actions/checkout@v4
@@ -122,9 +121,8 @@ jobs:
122121
run: |
123122
bundle exec rake build
124123
125-
# TODO: Uncomment this when we are ready to publish to RubyGems
126-
# - name: Publish to RubyGems
127-
# run: |
128-
# gem push pkg/*.gem
129-
# env:
130-
# RUBYGEMS_API_KEY: ${{ secrets.RUBYGEMS_API_KEY }}
124+
- name: Publish to RubyGems
125+
run: |
126+
gem push pkg/*.gem
127+
env:
128+
RUBYGEMS_API_KEY: ${{ secrets.RUBYGEMS_API_KEY }}

0 commit comments

Comments
 (0)