Skip to content

Commit

Permalink
update build steps
Browse files Browse the repository at this point in the history
  • Loading branch information
Karl-H committed Aug 22, 2024
1 parent 203af0c commit 95dadfd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,19 @@ jobs:
GEM_HOST_API_KEY: "${{secrets.RUBYGEMS_AUTH_TOKEN}}"

- uses: actions/checkout@v3
- name: Publish JRuby version to RubyGems
- name: Set up JRuby
uses: ruby/setup-ruby@v1
with:
ruby-version: jruby
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- run: jruby -S bundle exec rake build cache_store_redis.gemspec

- 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
jruby -S bundle exec rake build cache_store_redis.gemspec
gem push cache_store_redis-*.gem
env:
GEM_HOST_API_KEY: "${{secrets.RUBYGEMS_AUTH_TOKEN}}"

0 comments on commit 95dadfd

Please sign in to comment.