From c00aa76c0e4317bdcc592659bb94ceedf0236693 Mon Sep 17 00:00:00 2001 From: Qiao <572381217@qq.com> Date: Sun, 29 Sep 2024 14:44:31 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=88=20ci:=20=E6=B5=8B=E8=AF=95Release?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4ad854f..1bcd6ba 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -47,3 +47,31 @@ jobs: with: name: NapCat-Desktop path: ./build/NapCat-Desktop.exe + + + release: + needs: build + runs-on: ubuntu-latest + steps: + - name: "检出代码" + uses: actions/checkout@v2 + + - name: "下载工件" + uses: actions/download-artifact@v3 + with: + name: NapCat-Desktop + + - name: "设置 body 内容" + id: get_body + run: echo "::set-output name=body::$(cat docs/CHANGELOG.md)" + + - name: "创建发布草案" + id: create_release + uses: softprops/action-gh-release@v1 + with: + files: "./NapCat-Desktop.exe" + draft: true + token: ${{ secrets.GITHUB_TOKEN }} + tag_name: ${{ github.ref }} + name: "NapCat Release ${{ github.ref }}" + body: ${{ steps.get_body.outputs.body }}