From aceafad6a84d178323e2730bcef6cd7aa2e88865 Mon Sep 17 00:00:00 2001 From: GuoJiKun Date: Wed, 11 Dec 2024 17:06:31 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20=E5=A2=9E=E5=8A=A0=E8=AF=BB=E5=8F=96?= =?UTF-8?q?=E6=9C=80=E6=96=B0=E7=89=88=E6=9C=AC=E7=9A=84=20release=20?= =?UTF-8?q?=E5=A4=87=E6=B3=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build.yml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index bdedce0..6fbe60b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -33,6 +33,17 @@ jobs: # if: matrix.settings.target == 'macos-arm' # run: rustup target add aarch64-apple-darwin + - name: Get latest release + id: get_release + uses: actions/github-script@v4 + with: + script: | + const latestRelease = await github.repos.getLatestRelease({ + owner: context.repo.owner, + repo: context.repo.repo, + }); + return latestRelease.data; + - name: Rust setup uses: dtolnay/rust-toolchain@stable - name: Rust cache @@ -60,7 +71,7 @@ jobs: with: args: ${{ matrix.settings.args }} tagName: v__VERSION__ # the action automatically replaces \_\_VERSION\_\_ with the app version - releaseName: v__VERSION__-beta - releaseBody: "This is a release" + releaseName: v__VERSION__ + releaseBody: "${{ steps.get_release.outputs.body }}" releaseDraft: true prerelease: false \ No newline at end of file