.github/workflows/release.yml in stepmod-utils-0.2.4 vs .github/workflows/release.yml in stepmod-utils-0.2.5
- old
+ new
@@ -1,15 +1,19 @@
+# Auto-generated by Cimas: Do not edit it manually!
+# See https://github.com/metanorma/cimas
name: release
on:
workflow_dispatch:
inputs:
next_version:
description: |
Next release version. Possible values: x.y.z, major, minor, patch or pre|rc|etc
required: true
default: 'patch'
+ push:
+ tags: [ v* ]
jobs:
release:
runs-on: ubuntu-latest
steps:
@@ -17,12 +21,13 @@
- uses: ruby/setup-ruby@v1
with:
ruby-version: '2.6'
- - run: gem install gem-release
+ - run: gem install gem-release
- - run: |
+ - if: ${{ github.event_name == 'workflow_dispatch' }}
+ run: |
git config user.name github-actions
git config user.email github-actions@github.com
gem bump --version ${{ github.event.inputs.next_version }} --tag --push
- name: publish to rubygems.org