Skip to content
This repository has been archived by the owner on Oct 31, 2024. It is now read-only.

Commit

Permalink
ci: fix publish (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
Amir Blum authored Jan 2, 2022
1 parent 5b01a3f commit a3434cd
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,15 @@ jobs:
- name: Checkout
uses: actions/checkout@v2

- name: CD into gem directory
run: cd ${{ github.event.inputs.dir }}

- name: Bundle Install
run: bundle install

- name: Publish gem
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 install
gem build *.gemspec
gem push *.gem
env:
GEM_HOST_API_KEY: "${{secrets.RUBYGEMS_API_KEY}}"
working-directory: ${{ github.event.inputs.dir }}

0 comments on commit a3434cd

Please sign in to comment.