Only publish on tags

This commit is contained in:
Aleks Rutins 2024-12-07 17:53:45 -05:00
parent 1602d87b8a
commit 15c0a1ccc0

View file

@ -2,9 +2,7 @@ name: Ruby Gem
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
tags: '*'
jobs:
build:
@ -16,13 +14,13 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Set up Ruby 2.6
- name: Set up Ruby 3.3
# To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
# change this to (see https://github.com/ruby/setup-ruby#versioning):
# uses: ruby/setup-ruby@v1
uses: ruby/setup-ruby@55283cc23133118229fd3f97f9336ee23a179fcf # v1.146.0
with:
ruby-version: 2.6.x
ruby-version: 3.3.x
- name: Publish to GPR
run: |