Skip to content

Commit

Permalink
Gem is now published while automatically bumping the version.
Browse files Browse the repository at this point in the history
  • Loading branch information
QWYNG committed Sep 23, 2023
1 parent 8d7b792 commit ba8924f
Showing 1 changed file with 14 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
name: Publish to RubyGems
name: Bump version and Push to RubyGems

on:
workflow_dispatch:
inputs:
miner-or-major:
description: 'Minor or major release'
required: true
default: 'minor'
options:
- 'minor'
- 'major'

jobs:
build:
Expand All @@ -17,7 +25,12 @@ jobs:
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.2

- run: bundle install
- run: gem install gem-release

- name: Bump version
run: gem bump --version ${{ github.event.inputs.miner-or-major }}

- name: Publish to RubyGems
run: |
Expand Down

0 comments on commit ba8924f

Please sign in to comment.