From 529fa6d8e5d2e18cf7e4193bdb53b975357d4697 Mon Sep 17 00:00:00 2001 From: Innei Date: Mon, 5 Aug 2024 19:19:53 +0800 Subject: [PATCH] chore: ci release changelog Signed-off-by: Innei --- .github/workflows/build.yml | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 23d5cec26..669f1e65a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -122,7 +122,6 @@ jobs: - name: Setup Version id: version uses: ./.github/actions/setup-version - - name: Create Release Draft if: github.ref_type == 'tag' uses: softprops/action-gh-release@v2 @@ -137,3 +136,23 @@ jobs: out/make/**/*.exe out/make/**/*.AppImage out/make/**/*.yml + changelog: + needs: [release] + runs-on: ubuntu-latest + if: github.ref_type == 'tag' + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Setup pnpm + uses: pnpm/action-setup@v4 + + - name: Use Node.js + uses: actions/setup-node@v4 + with: + node-version: 22 + cache: "pnpm" + + - run: npx changelogithub # or changelogithub@0.12 if ensure the stable result + env: + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}