Skip to content

Commit ae5bb4a

Browse files
committed
fix gem push error
1 parent f17260a commit ae5bb4a

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ jobs:
1717
- id: gem
1818
run: echo "::set-output name=result::$(find pkg -name 'deploygate-*.gem' -type f | head -1)"
1919
- run: |
20-
curl --data-binary '@${{ steps.gem.outputs.result }}' \
21-
-H 'Authorization: ${{ secrets.RUBYGEMS_API_KEY }}' \
22-
"https://rubygems.org/api/v1/gems"
20+
gem push '${{ steps.gem.outputs.result }}'
21+
env:
22+
GEM_HOST_API_KEY: ${{ secrets.RUBYGEMS_API_KEY }}
2323
- uses: slackapi/slack-github-action@v1.16.0
2424
with:
2525
payload: "{\"text\": \"Released a deploygate gem in <https://rubygems.org/gems/deploygate/|RubyGems>\"}"

0 commit comments

Comments
 (0)