Skip to content

Commit

Permalink
Merge pull request #8 from deemaze/add-release-drafter
Browse files Browse the repository at this point in the history
Add a workflow to generate a new release on pushing to master
  • Loading branch information
pjpires authored Feb 2, 2024
2 parents a8cabaf + 1107115 commit f05361d
Show file tree
Hide file tree
Showing 2 changed files with 79 additions and 0 deletions.
55 changes: 55 additions & 0 deletions .github/release-drafter.yml
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
24 changes: 24 additions & 0 deletions .github/workflows/release.yml
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 }}

0 comments on commit f05361d

Please sign in to comment.