Bump version and create release #10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |