Skip to content

Commit f9f6bf4

Browse files
authored
Merge pull request #307 from DeployGate/work/fix_cant_push_gem_in_release_workflow
Fix gem push error in release workflow
2 parents f17260a + ae5bb4a commit f9f6bf4

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)