Skip to content

Commit

Permalink
Merge pull request #64 from apsislabs/github-actions-update
Browse files Browse the repository at this point in the history
GitHub actions update
  • Loading branch information
egreer authored Dec 15, 2022
2 parents e79b8bd + ac481fd commit 596863a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,14 @@ jobs:
ruby: [2.5, 2.6, 2.7]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up Ruby ${{ matrix.ruby }}
uses: actions/setup-ruby@v1
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Install dependencies
run: |
gem install bundler
bundle install
bundle exec appraisal install
- name: Run rspec
run: bundler exec appraisal rspec
11 changes: 4 additions & 7 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,15 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/setup-ruby@v1
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
ruby-version: '2.6'
- name: Install dependencies
run: |
gem install bundler:2.1.4
bundle install
bundler-cache: true
- name: Release Gem
if: contains(github.ref, 'refs/tags/v')
uses: cadwallion/publish-rubygems-action@master
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
RUBYGEMS_API_KEY: ${{secrets.RUBYGEMS_API_KEY}}
RELEASE_COMMAND: bundle exec rake release
RELEASE_COMMAND: bundle exec rake release

0 comments on commit 596863a

Please sign in to comment.