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 3dd6a18
Showing 1 changed file with 24 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,7 +1,20 @@
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'
email:
description: Your email
required: true
type: string


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

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

- name: config
run: |
git config --global user.email ${{ github.event.inputs.email }}
git config --global user.name ${{ github.actor }}
- name: Bump version
run: gem bump --version ${{ github.event.inputs.miner-or-major }}

- name: Publish to RubyGems
run: |
Expand Down

0 comments on commit 3dd6a18

Please sign in to comment.