add release-drafter for easy GitHub release management

This commit is contained in:
h1dden-da3m0n 2021-05-14 17:19:31 +02:00
parent 9b3edc8bd1
commit bc07b8af53
2 changed files with 42 additions and 0 deletions

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

@ -0,0 +1,22 @@
_extends: jellyfin/jellyfin-meta-plugins
name-template: "Release $RESOLVED_VERSION"
tag-template: "v$RESOLVED_VERSION"
version-template: "$MAJOR.$MINOR.$PATCH"
version-resolver:
major:
labels:
- 'major'
minor:
labels:
- 'minor'
patch:
labels:
- 'patch'
default: patch
template: |
## :sparkles: What's New
$CHANGES

20
.github/workflows/release-drafter.yaml vendored Normal file
View file

@ -0,0 +1,20 @@
name: Release Drafter
on:
push:
branches:
- master
tags:
- '*'
jobs:
update_release_draft:
name: Update release draft
runs-on: ubuntu-latest
steps:
- name: Update Release Draft
uses: release-drafter/release-drafter@v5.15.0
with:
publish: ${{ startsWith(github.ref, 'refs/tags/') }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}