Skip to content
This repository has been archived by the owner on Jul 15, 2024. It is now read-only.

Merge pull request #33 from blake-education/release-please--branches-… #6

Merge pull request #33 from blake-education/release-please--branches-…

Merge pull request #33 from blake-education/release-please--branches-… #6

Workflow file for this run

name: release
on:
push:
branches:
- develop
jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@v3
id: release
with:
# The release type
release-type: ruby
# A name for the artifact releases are being created for
# which is the name of our gem
package-name: winnow
# Should breaking changes before 1.0.0 produce minor bumps?
bump-minor-pre-major: true
# Path to our version file to increment
version-file: "lib/winnow/version.rb"
# Checkout code if release was created
- uses: actions/checkout@v2
if: ${{ steps.release.outputs.release_created }}
# Setup ruby if a release was created
- uses: ruby/setup-ruby@v1
with:
ruby-version: 3.0.4
if: ${{ steps.release.outputs.release_created }}
# Bundle install
- run: bundle install --jobs 4 --retry 3
if: ${{ steps.release.outputs.release_created }}
# Publish gem
- uses: dawidd6/action-publish-gem@v1
with:
github_token: ${{secrets.GITHUB_TOKEN}}
if: ${{ steps.release.outputs.release_created }}