Skip to content

Commit

Permalink
Adding GEM_HOST_API_KEY to ~/.gem/credentials before push
Browse files Browse the repository at this point in the history
Apparently and contrary to what the RubyGem website says, the GEM_HOST_API_KEY doesn't seem to be picked up by default
  • Loading branch information
AliSoftware committed May 25, 2021
1 parent 5f6a52f commit 9b91f49
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,10 @@ jobs:
command: gem install --user-install fastlane-plugin-wpmreleasetoolkit-*.gem
- run:
name: Push to RubyGems
command: gem push fastlane-plugin-wpmreleasetoolkit-*.gem
command: |
echo ":rubygems_api_key: ${GEM_HOST_API_KEY}" >>"$HOME/.gem/credentials"
chmod 600 "$HOME/.gem/credentials"
gem push fastlane-plugin-wpmreleasetoolkit-*.gem
workflows:
test:
Expand Down

0 comments on commit 9b91f49

Please sign in to comment.