From c31160bafbd5da8746cebe8e3dcb99d3da4921da Mon Sep 17 00:00:00 2001 From: Ning Sun Date: Mon, 16 Dec 2024 11:46:35 +0800 Subject: [PATCH] ci: refine release task and add release notes generation --- .github/workflows/release.yml | 33 +++++---------------------------- 1 file changed, 5 insertions(+), 28 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 27f72409..e714e007 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -34,37 +34,14 @@ jobs: tar -czvf release/build.tar.gz ./dist cd release && shasum -a 256 build.tar.gz > sha256.txt && cd ../ - - name: Upload artifacts - uses: actions/upload-artifact@v4 - with: - name: build.tar.gz - path: release/build.tar.gz - - - name: Upload checksum of artifacts - uses: actions/upload-artifact@v4 - with: - name: sha256.txt - path: release/sha256.txt - - release: - name: Release artifacts - # Release artifacts only when all the artifacts are built successfully. - needs: [build] - runs-on: ubuntu-latest - steps: - - name: Checkout sources - uses: actions/checkout@v4 - - - name: Download artifacts - uses: actions/download-artifact@v4 - - name: Publish release - uses: softprops/action-gh-release@v1 + uses: softprops/action-gh-release@v2 with: - name: 'Release ${{ github.ref_name }}' + generate_release_notes: true + prerelease: false files: | - **/build.tar.gz - **/sha256.txt + release/build.tar.gz + release/sha256.txt sync: name: Create PR to update VERSION