Skip to content

Commit c709341

Browse files
committed
fix: github actions to publish to RubyGems
1 parent 923c70f commit c709341

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

.github/workflows/release.yml

+7-6
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ on:
33
push:
44
tags:
55
- 'v*'
6+
branches:
7+
- 'release/*'
68

79
jobs:
810
release:
@@ -13,24 +15,23 @@ jobs:
1315
uses: actions/checkout@v1
1416

1517
- name: Setup Ruby
16-
uses: actions/setup-ruby@v1
18+
uses: ruby/setup-ruby@v1
1719
with:
18-
ruby-version: 2.6.x
20+
ruby-version: '2.6'
1921

2022
- name: Bundle
2123
run: |
2224
gem update --system
2325
gem update bundler
2426
bundle install --jobs 4 --retry 3
2527
26-
- name: Publish to GPR
28+
- name: Publish to RubyGems
2729
run: |
2830
mkdir -p $HOME/.gem
2931
touch $HOME/.gem/credentials
3032
chmod 0600 $HOME/.gem/credentials
3133
printf -- "---\n:github: Bearer ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
3234
gem build *.gemspec
33-
gem push --KEY github --host https://rubygems.pkg.github.com/${OWNER} *.gem
35+
gem push *.gem
3436
env:
35-
GEM_HOST_API_KEY: ${{ secrets.GPR_AUTH_TOKEN }}
36-
OWNER: ctran
37+
GEM_HOST_API_KEY: ${{ secrets.RUBYGEMS_AUTH_TOKEN }}

0 commit comments

Comments
 (0)