Skip to content

Commit

Permalink
Configure gem deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
wparad committed Dec 20, 2020
1 parent 8641919 commit 9ec8da3
Show file tree
Hide file tree
Showing 6 changed files with 135 additions and 672 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,28 +9,31 @@ on:
- 'release/**'

jobs:
nodejs:
ruby:
runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: actions/setup-ruby@v1
with:
ruby-version: 2.6.0
ruby-version: 2.7
# bundler-cache: true

- name: Install packages
run: gem install bundler && bundle install
run: gem install bundler:'~> 2.2.2' && bundle install

- name: Run build
run: bundle exec rake --trace

- name: Deploy to RubyGems
if: github.ref != 'refs/heads/main' && github.event_name == 'push'
uses: cadwallion/publish-rubygems-action@master
run: |
bundle exec rake build --trace
bundle exec rake publish_git_tag --trace
gem push pkg/*.gem -V
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
RUBYGEMS_API_KEY: ${{secrets.RUBYGEMS_API_KEY}}
GEM_HOST_API_KEY: "${{secrets.RUBYGEMS_API_KEY}}"

- name: After build
if: github.ref != 'refs/heads/main' && github.event_name == 'push'
Expand Down
3 changes: 2 additions & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ GEM

PLATFORMS
ruby
x86_64-linux

DEPENDENCIES
authress-sdk!
Expand All @@ -67,4 +68,4 @@ DEPENDENCIES
rubocop (~> 0.66.0)!

BUNDLED WITH
2.1.4
2.2.2
Loading

0 comments on commit 9ec8da3

Please sign in to comment.