-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from deemaze/add-release-drafter
Add a workflow to generate a new release on pushing to master
- Loading branch information
Showing
2 changed files
with
79 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
name-template: '$RESOLVED_VERSION' | ||
tag-template: 'v$RESOLVED_VERSION' | ||
|
||
categories: | ||
- title: 💥 Breaking Changes | ||
label: breaking | ||
|
||
- title: 🚀 New Features | ||
label: feature | ||
|
||
- title: 🐛 Bug Fixes | ||
label: bug | ||
|
||
- title: ✨ Improvements | ||
label: enhancement | ||
|
||
- title: 📝 Documentation Updates | ||
label: documentation | ||
|
||
- title: 🔧 Internal Changes | ||
label: internal | ||
|
||
- title: 🚦 Tests | ||
label: test | ||
|
||
- title: 📦 Dependency Updates | ||
collapse-after: 5 | ||
label: dependencies | ||
|
||
exclude-labels: | ||
- skip-changelog | ||
|
||
version-resolver: | ||
major: | ||
labels: | ||
- breakinng | ||
minor: | ||
labels: | ||
- feature | ||
- enhancement | ||
- documentation | ||
- dependencies | ||
patch: | ||
labels: | ||
- bug | ||
- internal | ||
- test | ||
default: minor | ||
|
||
change-template: '- $TITLE (#$NUMBER) @$AUTHOR' | ||
no-changes-template: '- No changes' | ||
template: | | ||
$CHANGES | ||
**Full Changelog:** https://github.com/$OWNER/$REPOSITORY/compare/$PREVIOUS_TAG...v$RESOLVED_VERSION |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: Create a new release on GitHub | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
create-release: | ||
permissions: | ||
# write permission is required to create a github release | ||
contents: write | ||
# read permission is required | ||
pull-requests: read | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: release-drafter/release-drafter@v5 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |