Merge pull request #53 from PeernetOfficial/Akilan1999-patch-1

Create release-drafter.yml
This commit is contained in:
Akilan Selvacoumar
2021-11-04 00:35:30 +04:00
committed by GitHub
3 changed files with 51 additions and 16 deletions

36
.github/release-drafter.yml vendored Normal file
View File

@@ -0,0 +1,36 @@
name-template: 'v$RESOLVED_VERSION'
tag-template: 'v$RESOLVED_VERSION'
template: |
# What's Changed
$CHANGES
categories:
- title: 'Breaking'
label: 'type: breaking'
- title: 'New'
label: 'type: feature'
- title: 'Bug Fixes'
label: 'type: bug'
- title: 'Maintenance'
label: 'type: maintenance'
- title: 'Documentation'
label: 'type: docs'
- title: 'Dependency Updates'
label: 'type: dependencies'
version-resolver:
major:
labels:
- 'type: breaking'
minor:
labels:
- 'type: feature'
patch:
labels:
- 'type: bug'
- 'type: maintenance'
- 'type: docs'
- 'type: dependencies'
- 'type: security'
exclude-labels:
- 'skip-changelog'

15
.github/workflows/draft.yml vendored Normal file
View File

@@ -0,0 +1,15 @@
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.GITHUB_TOKEN }}

View File

@@ -1,16 +0,0 @@
name: Core Release
on:
create:
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Create a release draft for a version tag
id: create-release-draft
uses: ecampidoglio/auto-release-draft@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Print the URL of the release draft
if: steps.create-release-draft.outputs.release-url != ''
run: echo ${{ steps.create-release-draft.outputs.release-url }}