From 064c73b4e769c1de5a5ba4a7880488582746664b Mon Sep 17 00:00:00 2001 From: ReaJason Date: Fri, 21 Feb 2025 00:16:48 +0800 Subject: [PATCH] ci: support jar file release --- .github/workflows/release.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 59a0db1d..59d2d416 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -126,12 +126,24 @@ jobs: steps: - uses: actions/checkout@v4 + - name: Download Boot Jar + uses: actions/download-artifact@v4 + with: + name: boot + path: boot/build/libs + + - name: Calculate SHA-256 + id: calculate_sha256 + run: | + sha256sum boot/build/libs/boot-${{ needs.info.outputs.version-without-v }}.jar > boot/build/libs/boot-${{ needs.info.outputs.version-without-v }}.sha256 + - name: Release uses: ncipollo/release-action@v1 with: name: ${{ needs.info.outputs.version }} tag: ${{ needs.info.outputs.version }} body: ${{ needs.info.outputs.changelog }} + artifacts: boot/build/libs/boot-${{ needs.info.outputs.version-without-v }}.jar,boot/build/libs/boot-${{ needs.info.outputs.version-without-v }}.sha256 deploy-northflank: name: Deploy to Northflank