Skip to content

Create Release

Create Release #13

on:
workflow_dispatch:
inputs:
version-major:
type: string
description: Major version (eg. x.0.0)
version-minor:
type: string
description: Minor version (eg. 0.x.0)
version-bugfix:
type: string
description: Bug fix version (eg. 0.0.x)
default: "0"
name: Create Release
jobs:
build:
name: Create Release
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@master
- name: Create tag
id: tag_version
uses: mathieudutour/github-tag-action@v6.1
with:
github_token: ${{ secrets.TOKEN_GH }}
custom_tag : ${{github.event.inputs.version-major}}.${{github.event.inputs.version-minor}}.${{github.event.inputs.version-bugfix}}
- name: Create Release
id: create_release
uses: actions/create-release@latest
env:
GITHUB_TOKEN: ${{ secrets.TOKEN_GH }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: ${{ steps.tag_version.outputs.new_tag }}
release_name: ${{ steps.tag_version.outputs.new_tag }}
body: "Changelog: https://tkclasswizard.readthedocs.io/en/v${{github.event.inputs.version-major}}.${{github.event.inputs.version-minor}}.x/changelog.html"
draft: false
prerelease: false