Skip to content

v2.0.1

v2.0.1 #6

Workflow file for this run

name: Ruby
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
RUBY_VERSION: "3.2"
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ env.RUBY_VERSION }}
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Run tests
run: bundle exec rspec
deploy:
name: Build + Publish
runs-on: ubuntu-latest
needs: test
permissions:
contents: read
packages: write
if: github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ env.RUBY_VERSION }}
- name: Publish package to GPR and Gemfury
run: |
./deploy.sh
env:
GEM_HOST_API_KEY: "Bearer ${{secrets.GITHUB_TOKEN}}"