Skip to content

Release

Release #3

Workflow file for this run

# Create an incremental tag on Github using SemVer https://semver.org: x.y.z
name: Release
on:
workflow_dispatch:
inputs:
choice:
type: choice
description: Release type
options:
- patch (x.y.Z)
- minor (x.Y.z)
- major (X.y.z)
jobs:
release:
# if: ${{ github.ref == 'refs/heads/main' }}
runs-on: ubuntu-latest
name: Tag for release
steps:
- name: Create tag as version for package on Packagist.org
id: create-tag
uses: GregoryGost/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
uselasttag: true
releasetype: ${{ inputs.choice }}