Skip to content

Updating test_helper for Minitest #106

Updating test_helper for Minitest

Updating test_helper for Minitest #106

Workflow file for this run

on:
push:
branches:
- main
permissions:
contents: write
pull-requests: write
name: release
jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@v3
id: release
with:
release-type: ruby
package-name: wafris
bump-minor-pre-major: true
version-file: "lib/wafris/version.rb"
changelog-path: "Changes.md"
# Checkout code if release was created
- uses: actions/checkout@v3
if: ${{ steps.release.outputs.release_created }}
# Setup ruby if a release was created
- uses: ruby/setup-ruby@v1
with:
ruby-version: 3.1.3
if: ${{ steps.release.outputs.release_created }}
# Bundle install
- run: bundle install
if: ${{ steps.release.outputs.release_created }}
# Publish Gem
- name: Publish to RubyGems
run: |
mkdir -p $HOME/.gem
touch $HOME/.gem/credentials
chmod 0600 $HOME/.gem/credentials
printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
gem build *.gemspec
gem push *.gem
env:
GEM_HOST_API_KEY: "${{secrets.RUBYGEMS_GITHUB_TOKEN}}"
if: ${{ steps.release.outputs.release_created }}