Skip to content

Bump version and create release #11

Bump version and create release

Bump version and create release #11

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
- run: git config --global user.name "github-actions[bot]"
- run: git config --global user.email "github-actions[bot]@users.noreply.github.com"
- name: Bump version
id: bump
uses: callowayproject/bump-my-version@master
env:
BUMPVERSION_TAG: "true"
with:
args: ${{ inputs.bump-type }} --commit --verbose
github-token: ${{ secrets.GITHUB_TOKEN }}
- 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