Skip to content

Commit

Permalink
Publush to rubygems
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesridgway committed Aug 5, 2023
1 parent 85e800a commit 9521ecb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 12 deletions.
13 changes: 2 additions & 11 deletions .github/workflows/publish_gem.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,7 @@ jobs:
- name: Build and publish gem
run: |
echo "Setting up access to GitHub Package Registry"
mkdir -p ~/.gem
touch ~/.gem/credentials
chmod 600 ~/.gem/credentials
echo ":github: Bearer ${GITHUB_TOKEN}" >> ~/.gem/credentials
echo "Building the gem"
find . -name '*.gemspec' -maxdepth 1 -exec gem build {} \;
echo "Pushing the built gem to GitHub Package Registry"
find . -name '*.gem' -maxdepth 1 -print0 | xargs -0 gem push --key github --host "https://rubygems.pkg.github.com/${OWNER}"
gem build caracal.gemspec
gem push caracal-*.gem
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
OWNER: the-curve-consulting
2 changes: 1 addition & 1 deletion caracal.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'caracal/version'

Gem::Specification.new do |spec|
spec.name = 'caracal'
spec.name = 'caracal_the_curve'
spec.version = Caracal::VERSION
spec.authors = ['Trade Infomatics', 'John Dugan']
spec.email = ['jpdugan@gmail.com']
Expand Down

0 comments on commit 9521ecb

Please sign in to comment.