From 70dbd77f199e6c26c90a4f34d5940cddefc7c4c8 Mon Sep 17 00:00:00 2001 From: hi2hi Date: Fri, 6 Dec 2024 15:34:19 +0000 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E5=8F=91=E5=B8=83?= =?UTF-8?q?=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e8f320f..0dff021 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -82,3 +82,11 @@ jobs: asset_path: ./dist.zip asset_name: dist.zip asset_content_type: application/zip + + - name: Add release notes + run: | + gh release view v${{ steps.determine_version.outputs.version }} --json body -q .body > body.txt + echo -e "哪吒V1请下载dist.zip\n哪吒V0请下载v0-${{ steps.determine_version.outputs.version }}.zip" >> body.txt + gh release edit v${{ steps.determine_version.outputs.version }} --notes-file body.txt + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}