.github/workflows/pipeline.yml in ws-style-6.6.1 vs .github/workflows/pipeline.yml in ws-style-6.6.3
- old
+ new
@@ -20,10 +20,17 @@
- name: Run rspec
run: bundle exec rspec
- name: Release the gem
if: ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master' }}
run: |
- git config user.name "Wolfbot"
+ mkdir -p ~/.gem
+ cat << EOF > ~/.gem/credentials
+ ---
+ :github: Bearer ${GITHUB_TOKEN}
+ :rubygems_api_key: ${RUBYGEMS_API_KEY}
+ EOF
+ chmod 0600 ~/.gem/credentials
git config user.email "noreply@wealthsimple.com"
+ git config user.name "Wolfbot"
bundle exec rake release
env:
RUBYGEMS_API_KEY: ${{ secrets.RUBYGEMS_API_KEY }}