(#32) update to solidus 4.0.1 #94
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: '3.1.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 |