From 73e0f41ebd1f4a78320f2708e3e82baf3e1e17b8 Mon Sep 17 00:00:00 2001 From: louis Date: Thu, 17 Mar 2022 13:31:54 +0100 Subject: [PATCH] :construction_worker: Add release-drafter --- .github/release-drafter.yml | 37 ++++++++++++++++++++++++++ .github/workflows/release-drafter.yaml | 18 +++++++++++++ 2 files changed, 55 insertions(+) create mode 100644 .github/release-drafter.yml create mode 100644 .github/workflows/release-drafter.yaml diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml new file mode 100644 index 0000000..04156bc --- /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.yaml b/.github/workflows/release-drafter.yaml new file mode 100644 index 0000000..3516ea1 --- /dev/null +++ b/.github/workflows/release-drafter.yaml @@ -0,0 +1,18 @@ +name: Release Drafter + +on: + push: + branches: + - main + +jobs: + release: + name: Update Release + runs-on: ubuntu-20.04 + steps: + - name: Publish Release + uses: release-drafter/release-drafter@v5 + with: + publish: false + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}