diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml new file mode 100644 index 0000000..74aa8b6 --- /dev/null +++ b/.github/release-drafter.yml @@ -0,0 +1,21 @@ +# Template for release drafts +name-template: 'v$NEXT_PATCH_VERSION' # You can switch to $NEXT_MINOR_VERSION or $NEXT_MAJOR_VERSION +tag-template: 'v$NEXT_PATCH_VERSION' +categories: + - title: "🚀 Features" + labels: + - feature + - title: "🐛 Bug Fixes" + labels: + - fix + - bug + - title: "🧰 Maintenance" + labels: + - chore + - refactor +change-template: '- $TITLE (#$NUMBER) by @$AUTHOR' +change-title-template: '### $TITLE' +template: | + ## Changes + + $CHANGES diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml new file mode 100644 index 0000000..67f8ce7 --- /dev/null +++ b/.github/workflows/release-drafter.yml @@ -0,0 +1,17 @@ +name: Release Drafter + +on: + push: + branches: + - main + +jobs: + update_release_draft: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: release-drafter/release-drafter@v6 + with: + config-name: release-drafter.yml + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}