Skip to content

Commit

Permalink
Update gem-push.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
gsguma authored Mar 18, 2024
1 parent 5347ce2 commit 8ef0cfd
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions .github/workflows/gem-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Ruby Gem

on:
push:
tags: [ "*v*" ]
tags: "*v*"

jobs:
build:
Expand All @@ -19,18 +19,6 @@ jobs:
with:
ruby-version: 3.2.0

- name: Publish to GPR
run: |
mkdir -p $HOME/.gem
touch $HOME/.gem/credentials
chmod 0600 $HOME/.gem/credentials
printf -- "---\n:github: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
gem build *.gemspec
gem push --KEY github --host https://rubygems.pkg.github.com/${OWNER} *.gem
env:
GEM_HOST_API_KEY: "Bearer ${{secrets.GITHUB_TOKEN}}"
OWNER: ${{ github.repository_owner }}

- name: Publish to RubyGems
run: |
mkdir -p $HOME/.gem
Expand Down

0 comments on commit 8ef0cfd

Please sign in to comment.