Only publish on tags
This commit is contained in:
parent
1602d87b8a
commit
15c0a1ccc0
1 changed files with 3 additions and 5 deletions
8
.github/workflows/gem-push.yml
vendored
8
.github/workflows/gem-push.yml
vendored
|
@ -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: |
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue