Create versioned release #3
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
# File: .github/workflows/release-version.yaml | |
name: Create versioned release | |
permissions: | |
contents: write | |
packages: write | |
on: | |
workflow_dispatch: | |
inputs: | |
update-type: | |
type: choice | |
description: Which version you want to increment? Use major, minor or patch | |
required: true | |
default: patch | |
options: | |
- major | |
- minor | |
- patch | |
label: | |
description: Add Labels. i.e final, alpha, rc | |
required: false | |
pre-release: | |
type: boolean | |
description: Pre-release | |
required: false | |
default: false | |
jobs: | |
release-version: | |
name: Create SemVer releases | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Create version releases | |
uses: climpr/semver-release@v1 | |
with: | |
update-type: ${{ github.event.inputs.update-type }} | |
label: ${{ github.event.inputs.label }} | |
pre-release: ${{ github.event.inputs.pre-release }} |