diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index c51393c..852c370 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -18,12 +18,6 @@ jobs: ruby-version: 2.7.x - 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 faraday-net_http_persistent.gemspec - gem push faraday-net_http_persistent-*.gem - env: - GEM_HOST_API_KEY: ${{ secrets.RUBYGEMS_AUTH_TOKEN }} + uses: dawidd6/action-publish-gem@v1 + with: + api_key: ${{secrets.RUBYGEMS_AUTH_TOKEN}} diff --git a/bin/console b/bin/console index 1d27b56..92d956e 100755 --- a/bin/console +++ b/bin/console @@ -2,7 +2,7 @@ # frozen_string_literal: true require 'bundler/setup' -require 'faraday-net_http_persistent' +require 'faraday/net_http_persistent' # You can add fixtures and/or initialization code here to make experimenting # with your gem easier. You can also use a different console, if you like.