From 042f5cdddb5b43ef2cbab1085daee8b67b06e844 Mon Sep 17 00:00:00 2001 From: nashaofu Date: Thu, 1 Feb 2024 14:50:05 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E4=BF=AE=E6=94=B9CI=EF=BC=8C=E6=94=AF?= =?UTF-8?q?=E6=8C=81=E7=94=9F=E6=88=90release?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../{release-drafter.yml => release-drafter.yaml} | 15 ++------------- .github/workflows/ci.yaml | 14 ++++++++------ 2 files changed, 10 insertions(+), 19 deletions(-) rename .github/{release-drafter.yml => release-drafter.yaml} (63%) diff --git a/.github/release-drafter.yml b/.github/release-drafter.yaml similarity index 63% rename from .github/release-drafter.yml rename to .github/release-drafter.yaml index 4eac8eb..efdfd23 100644 --- a/.github/release-drafter.yml +++ b/.github/release-drafter.yaml @@ -1,5 +1,3 @@ -name-template: "v$RESOLVED_VERSION 🌈" -tag-template: "v$RESOLVED_VERSION" categories: - title: "🚀 Features" labels: @@ -14,18 +12,9 @@ categories: label: "chore" change-template: "- $TITLE @$AUTHOR (#$NUMBER)" change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks. -version-resolver: - major: - labels: - - "major" - minor: - labels: - - "minor" - patch: - labels: - - "patch" - default: patch template: | ## Changes $CHANGES + + **Full Changelog**: https://github.com/$OWNER/$REPOSITORY/compare/$PREVIOUS_TAG...v$RESOLVED_VERSION diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 8d8391d..44723f2 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -60,12 +60,14 @@ jobs: override: true components: rustfmt, clippy - # - name: Release draft - # uses: release-drafter/release-drafter@v5 - # env: - # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - # with: - # publish: true + - name: Release drafter + uses: release-drafter/release-drafter@v5 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + publish: true + name: ${{ github.ref_name }} + tag: ${{ github.ref_name }} - name: Publish env: