Skip to content

Commit

Permalink
Update gem-push.yml
Browse files Browse the repository at this point in the history
Experiment with saving the RubyGems api key locally
  • Loading branch information
danielsilva authored Dec 6, 2023
1 parent e7aec58 commit a7f62fe
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/gem-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,11 @@ jobs:
git config user.email "<>"
- name: Create release
run: GEM_HOST_API_KEY ${{secrets.RUBYGEMS_API_KEY}} bundle exec rake release
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
bundle exec rake release
env:
GEM_HOST_API_KEY: ${{secrets.RUBYGEMS_API_KEY}}

0 comments on commit a7f62fe

Please sign in to comment.