Skip to content

solidus 4.0

solidus 4.0 #90

Workflow file for this run

name: CI
# actions ref: https://github.com/fac/ruby-gem-push-action
# https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
on:
push:
branches:
- main
pull_request:
jobs:
# build:
# runs-on: ubuntu-latest
# steps: # (your tests go here)
release:
name: Gem / Release
# needs: test # Only release IF the tests pass
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ruby/[email protected]
with:
ruby-version: '2.7.2' # Not needed with a .ruby-version file
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- uses: fac/ruby-gem-setup-credentials-action@v2
with:
token: ${{ secrets.GH_TOKEN }}
- name: Build Gem
# run: bundle exec rake build
run: gem build
# Release production gem version from default branch
- name: Release Gem
if: github.ref == 'refs/heads/main'
uses: fac/ruby-gem-push-action@v2
with:
gem-glob: '*.gem'
key: github
# PR branch builds will release pre-release gems
# - name: Pre-Release Gem
# if: github.ref != 'refs/heads/main'
# uses: fac/ruby-gem-push-action@v2
# with:
# key: github
# pre-release: true