Skip to content

Commit

Permalink
Set permissions for gem credentials file for pushing.
Browse files Browse the repository at this point in the history
  • Loading branch information
Anuraag Agrawal authored Apr 9, 2021
1 parent 7078bb9 commit aeb19d6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/release-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,14 @@ jobs:
- name: Set API key credentials
run: |
echo ":rubygems_api_key: $RUBYGEMS_API_KEY" > ~/.gem/credentials
chmod 0600 ~/.gem/credentials
env:
RUBYGEMS_API_KEY: ${{ secrets.RUBYGEMS_API_KEY }}
# Implicitly verifies that CHANGELOG and version.rb match
- name: Push gem
run: gem push aws-xray-sdk-${{ env.VERSION }}.gem
- name: Clear credentials
run: rm ~/.gem/credentials
run: rm -f ~/.gem/credentials
- name: Create Release
id: create_release
uses: actions/create-release@v1
Expand Down

0 comments on commit aeb19d6

Please sign in to comment.