diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml new file mode 100644 index 0000000..0b9d9bc --- /dev/null +++ b/.github/release-drafter.yml @@ -0,0 +1,28 @@ +name-template: 'Release $RESOLVED_VERSION' +tag-template: '$RESOLVED_VERSION' + +categories: + - title: 📖 Translated Documents + labels: + - konjacbot + +change-template: '- $TITLE (#$NUMBER)' +change-title-escapes: '\<*_&' +no-changes-template: '- No changes listed' + +version-resolver: + major: + labels: + - 'major' + minor: + labels: + - 'minor' + patch: + labels: + - 'patch' + default: patch + +template: | + ## Changes + + $CHANGES diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..3508985 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,22 @@ +name: Release Workflow +on: + pull_request: + types: + - closed + workflow_dispatch: +jobs: + release: + if: > + github.event.pull_request.merged == true && + contains(github.event.pull_request.title, 'konjacbot') + name: Create Release note + runs-on: ubuntu-latest + steps: + - name: Run Release Drafter + uses: release-drafter/release-drafter@v5 + with: + config-name: .github/release-drafter.yml + publish: false + commitish: main + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}