Github Action: Add release-drafter (#54)

This commit is contained in:
Md. Emruz Hossain 2020-07-24 22:07:37 +06:00 committed by GitHub
parent 55588921f2
commit 6f96ca1e15
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 45 additions and 0 deletions

31
.github/release-drafter.yml vendored Normal file
View file

@ -0,0 +1,31 @@
name-template: 'v$RESOLVED_VERSION'
tag-template: 'v$RESOLVED_VERSION'
template: |
I am very excited to announce Toha 'v$RESOLVED_VERSION'. Thanks to $CONTRIBUTORS for their valuable contribution in this release.
The following things has been changed since last release:
$CHANGES
categories:
- title: 'Breaking Changes'
label: 'breaking-change'
- title: 'New Features & Enhancements'
labels:
- 'feature'
- 'enhancement'
- title: 'Bug Fixes'
labels:
- 'bug'
- 'bug-fix'
version-resolver:
major:
labels:
- 'breaking'
minor:
labels:
- 'feature'
- 'enhancement'
patch:
labels:
- 'bug'
- 'bug-fix'

14
.github/workflows/draft-release.yml vendored Normal file
View file

@ -0,0 +1,14 @@
name: Release Drafter
on:
push:
branches:
- master
jobs:
update_release_draft:
runs-on: ubuntu-latest
steps:
- uses: release-drafter/release-drafter@master
env:
GITHUB_TOKEN: ${{ secrets.ACTION_DEPLOY_KEY }}