Skip to content

Commit

Permalink
Merge pull request #56 from yuya-takeyama/yuya-takeyama-patch-1
Browse files Browse the repository at this point in the history
Fix release steps
  • Loading branch information
yuya-takeyama authored Jul 5, 2022
2 parents 1bd6c45 + 7d65ca2 commit ef5734e
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions .github/workflows/publish-gem.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,20 @@ jobs:
with:
ruby-version: '3.1'
bundler-cache: true
- name: Release Gem
if: contains(github.ref, 'refs/tags/v')
uses: cadwallion/[email protected]
- name: Setup credentials
run: |
mkdir -p ~/.gem
cat << EOF > ~/.gem/credentials
---
:github: Bearer ${GITHUB_TOKEN}
:rubygems_api_key: ${RUBYGEMS_API_KEY}
EOF
chmod 0600 ~/.gem/credentials
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
RUBYGEMS_API_KEY: ${{ secrets.RUBYGEMS_API_KEY }}
RELEASE_COMMAND: bundle exec rake release
- name: Release Gem
run: |
bundle exec rake release

0 comments on commit ef5734e

Please sign in to comment.