From 47cb2736be6bb2e4c772accffc14ab6459810b83 Mon Sep 17 00:00:00 2001 From: louis Date: Sun, 31 Dec 2023 17:52:29 +0100 Subject: [PATCH] Add Release Drafter --- .github/release-drafter.yml | 37 +++++++++++++++++++++++++++ .github/workflows/release-drafter.yml | 18 +++++++++++++ 2 files changed, 55 insertions(+) create mode 100644 .github/release-drafter.yml create mode 100644 .github/workflows/release-drafter.yml diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml new file mode 100644 index 0000000..51018d4 --- /dev/null +++ b/.github/release-drafter.yml @@ -0,0 +1,37 @@ +name-template: "$RESOLVED_VERSION" +tag-template: "$RESOLVED_VERSION" +categories: + - title: "๐Ÿš€ Features" + labels: + - "feature" + - "enhancement" + - title: "๐Ÿ› Bug Fixes" + labels: + - "fix" + - "bugfix" + - "bug" + - title: "๐Ÿงน Maintenance" + labels: + - "chore" + - "dependencies" +version-resolver: + major: + labels: + - "feature" + minor: + labels: + - "enhancement" + patch: + labels: + - "fix" + - "bugfix" + - "bug" + - "chore" + - "dependencies" + default: patch +template: | + ## Changes + + $CHANGES + + **Full Changelog**: https://github.com/$OWNER/$REPOSITORY/compare/$PREVIOUS_TAG...$RESOLVED_VERSION diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml new file mode 100644 index 0000000..75e34b6 --- /dev/null +++ b/.github/workflows/release-drafter.yml @@ -0,0 +1,18 @@ +name: Release Drafter + +on: + push: + branches: + - main + +jobs: + release: + name: Update Release + runs-on: ubuntu-22.04 + steps: + - name: Publish Release + uses: release-drafter/release-drafter@v5 + with: + publish: false + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}