Remove GPR step
This commit is contained in:
parent
372e82ee9b
commit
b5581fd0e6
1 changed files with 16 additions and 27 deletions
43
.github/workflows/gempush.yml
vendored
43
.github/workflows/gempush.yml
vendored
|
@ -1,3 +1,4 @@
|
||||||
|
---
|
||||||
name: Ruby Gem
|
name: Ruby Gem
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
@ -14,31 +15,19 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@master
|
- uses: actions/checkout@master
|
||||||
- name: Set up Ruby 2.6
|
- name: Set up Ruby 2.6
|
||||||
uses: actions/setup-ruby@v1
|
uses: actions/setup-ruby@v1
|
||||||
with:
|
with:
|
||||||
ruby-version: 2.6.x
|
ruby-version: 2.6.x
|
||||||
|
|
||||||
- name: Publish to GPR
|
- name: Publish to RubyGems
|
||||||
run: |
|
run: |
|
||||||
mkdir -p $HOME/.gem
|
mkdir -p $HOME/.gem
|
||||||
touch $HOME/.gem/credentials
|
touch $HOME/.gem/credentials
|
||||||
chmod 0600 $HOME/.gem/credentials
|
chmod 0600 $HOME/.gem/credentials
|
||||||
printf -- "---\n:github: Bearer ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
|
printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
|
||||||
gem build *.gemspec
|
gem build *.gemspec
|
||||||
gem push --KEY github --host https://rubygems.pkg.github.com/${OWNER} *.gem
|
gem push *.gem
|
||||||
env:
|
env:
|
||||||
GEM_HOST_API_KEY: ${{secrets.GPR_AUTH_TOKEN}}
|
GEM_HOST_API_KEY: ${{secrets.RUBYGEMS_AUTH_TOKEN}}
|
||||||
OWNER: username
|
|
||||||
|
|
||||||
- name: Publish to RubyGems
|
|
||||||
run: |
|
|
||||||
mkdir -p $HOME/.gem
|
|
||||||
touch $HOME/.gem/credentials
|
|
||||||
chmod 0600 $HOME/.gem/credentials
|
|
||||||
printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
|
|
||||||
gem build *.gemspec
|
|
||||||
gem push *.gem
|
|
||||||
env:
|
|
||||||
GEM_HOST_API_KEY: ${{secrets.RUBYGEMS_AUTH_TOKEN}}
|
|
||||||
|
|
Loading…
Reference in a new issue