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:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ "main" ]
|
tags: '*'
|
||||||
pull_request:
|
|
||||||
branches: [ "main" ]
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
@ -16,13 +14,13 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- 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,
|
# To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
|
||||||
# change this to (see https://github.com/ruby/setup-ruby#versioning):
|
# change this to (see https://github.com/ruby/setup-ruby#versioning):
|
||||||
# uses: ruby/setup-ruby@v1
|
# uses: ruby/setup-ruby@v1
|
||||||
uses: ruby/setup-ruby@55283cc23133118229fd3f97f9336ee23a179fcf # v1.146.0
|
uses: ruby/setup-ruby@55283cc23133118229fd3f97f9336ee23a179fcf # v1.146.0
|
||||||
with:
|
with:
|
||||||
ruby-version: 2.6.x
|
ruby-version: 3.3.x
|
||||||
|
|
||||||
- name: Publish to GPR
|
- name: Publish to GPR
|
||||||
run: |
|
run: |
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue