diff --git a/.github/release-template.yml b/.github/release-template.yml new file mode 100644 index 0000000..cea16a9 --- /dev/null +++ b/.github/release-template.yml @@ -0,0 +1,32 @@ +name-template: 'v$RESOLVED_VERSION 🌈' +tag-template: 'v$RESOLVED_VERSION' +categories: + - title: '🚀 Features' + label: 'feature' + - title: '🐛 Bug Fixes' + label: 'bug' + - title: '📖 Documentation' + label: 'documentation' + - title: '🧰 Maintenance' + label: 'maintenance' +version-resolver: + minor: + labels: + - 'feature' + default: patch +exclude-labels: + - 'skip-changelog' +category-template: '### $TITLE' +change-template: '* $TITLE ([#$NUMBER]($URL))' +template: | + ## Release v$RESOLVED_VERSION (20YY/MM/DD) + + ### 💫 Highlights + + * + + $CHANGES + + ### 🧑‍🤝‍🧑 Contributors + + $CONTRIBUTORS diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml new file mode 100644 index 0000000..1188db2 --- /dev/null +++ b/.github/workflows/release-drafter.yml @@ -0,0 +1,21 @@ +name: Release Drafter + +on: + push: + branches: + - main + +permissions: + contents: read + +jobs: + update_release_draft: + runs-on: ubuntu-22.04 + steps: + # Drafts your next Release notes as Pull Requests are merged into "main" + - uses: release-drafter/release-drafter@v5.20.0 + with: + # (Optional) specify config name to use, relative to .github/. Default: release-drafter.yml + config-name: release-template.yml + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}