Skip to content

Bump version and create release #7

Bump version and create release

Bump version and create release #7

Workflow file for this run

name: Bump version and create release
on:
workflow_dispatch:
inputs:
bump-type:
description: 'What kind of release is this?'
required: false
default: 'minor'
type: choice
options:
- 'major'
- 'minor'
- 'patch'
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Bump version
id: bump
uses: callowayproject/bump-my-version@master
env:
BUMPVERSION_TAG: "true"
with:
args: ${{ inputs.bump-type }} --commit --verbose
- name: Create GitHub release
uses: softprops/action-gh-release@v2
with:
tag_name: v${{ steps.bump.outputs.current-version }}
token: ${{ secrets.PAT }} # Use personal access token for trigger next workflows