Github action to create git tag and Github release on merge.
on:
push:
branches:
- main
jobs:
release-on-merge:
runs-on: ubuntu-latest
permissions:
contents: write
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: dexwritescode/release-on-merge-action@v1
The only permissions needed for GITHUB_TOKEN
to create tags and releases is contents: write
.
Optional The version number to increment. Default patch
.
It can be one of: major
, minor
, patch
, norelease
version-increment-strategy: major
Optional If no previous release found in the repo, the default configuration will create release and tag v0.1.0
.
The below override will create release and tag v1.2.3
initial-version: '1.2.3'
Optional Git tag prefix. Example the v in v1.2.3
. Default v
.
tag-prefix: v
Optional Body text to prepend the auto generated body.
body: 'Body text...'
Optional Whether to auto-generate Github release notes. Default true
.
generate-release-notes: true
Optional Do not create a release, just log the oputput if enabled. Default false
.
dry-run: true
This action uses release-on-merge-action-source
This Github Action is licensed under MIT license.