Skip to content

Commit

Permalink
Add release draft workflow (#92)
Browse files Browse the repository at this point in the history
  • Loading branch information
wavded authored Feb 2, 2021
1 parent fd7f3e1 commit 2d27822
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 1 deletion.
30 changes: 30 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name-template: 'v$RESOLVED_VERSION'
tag-template: 'v$RESOLVED_VERSION'
template: |
$CHANGES
category-template: '#### $TITLE'
change-template: '* #$NUMBER - $TITLE (@$AUTHOR)'
categories:
- title: 'Breaking changes'
label: 'breaking'
- title: 'Enhancements'
label: 'enhancement'
- title: 'Bug fixes'
label: 'bug'
- title: 'Maintenance'
label: 'chore'

version-resolver:
major:
labels:
- 'breaking'
minor:
labels:
- 'enhancement'
patch:
labels:
- 'bug'
- 'chore'

exclude-labels:
- 'skip-changelog'
6 changes: 5 additions & 1 deletion .github/workflows/main.yml → .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: build
on: [push, pull_request]
on:
push:
branches:
- master
pull_request:
jobs:
build:
runs-on: ubuntu-latest
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: release-draft
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 }}

0 comments on commit 2d27822

Please sign in to comment.