From 20dbc93e78f3c73b7cc6b4567f00c5346f737cd1 Mon Sep 17 00:00:00 2001 From: joe Date: Sat, 4 Mar 2023 05:58:43 +0000 Subject: [PATCH] Docs (release): Add CI jobs for generating and publishing release notes (2) (#26) --- .github/release-drafter.yml | 19 +++++++++++++++++++ .github/workflows/build.yml | 13 ++++++++----- 2 files changed, 27 insertions(+), 5 deletions(-) diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml index 10ab2f8..80c8b7b 100644 --- a/.github/release-drafter.yml +++ b/.github/release-drafter.yml @@ -23,6 +23,25 @@ categories: - title: '🧰 Maintenance' label: 'chore' change-template: '- $TITLE @$AUTHOR (#$NUMBER)' +version-resolver: + major: + labels: + - 'breaking' + minor: + labels: + - 'feature' + - 'enhancement' + - 'change' + - 'refactor' + patch: + labels: + - 'fix' + - 'bug' + - 'style' + - 'docs' + - 'documentation' + - 'chore' + default: patch sort-by: title template: | ## Changes diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 716ad43..0c7013f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -283,11 +283,12 @@ jobs: if: github.ref == 'refs/heads/master' runs-on: ubuntu-latest steps: - - uses: release-drafter/release-drafter@v5 - with: - config-name: release-drafter.yml - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - uses: release-drafter/release-drafter@v5 + with: + config-name: release-drafter.yml + publish: false + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} publish-draft-release: needs: [alpine, ubuntu] @@ -298,5 +299,7 @@ jobs: with: config-name: release-drafter.yml publish: true + name: ${{ github.ref_name }} # E.g. 'master' or 'v1.2.3' + tag: ${{ github.ref_name }} # E.g. 'master' or 'v1.2.3' env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}