Skip to content

Commit

Permalink
Rewrite own build steps
Browse files Browse the repository at this point in the history
  • Loading branch information
marocchino committed Mar 11, 2020
1 parent 5a446ab commit 77b1e01
Showing 1 changed file with 20 additions and 3 deletions.
23 changes: 20 additions & 3 deletions .github/workflows/publish.yml
Expand Up @@ -11,8 +11,25 @@ jobs:

steps:
- uses: actions/checkout@v2

- name: Release Gem
uses: cadwallion/publish-rubygems-action@master
- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.6
- name: Setting up gem 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:
RUBYGEMS_API_KEY: ${{secrets.RUBYGEMS_API_KEY}}
- name: Installing dependencies
run: |
gem install bundler
bundle install
- name: Build
run: gem build ffaker.gemspec
- name: Release
run: gem push ffaker-*.gem

0 comments on commit 77b1e01

Please sign in to comment.