From f6c9aa9beb3d96413f7133692ccc7b9e41e2b2cf Mon Sep 17 00:00:00 2001 From: Roy Shilkrot Date: Tue, 17 Oct 2023 14:15:40 -0400 Subject: [PATCH] add checksums and release body --- .github/workflows/build.yaml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index ab1a5dd..cebd298 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -120,12 +120,25 @@ jobs: - name: "Download build artifacts" uses: "actions/download-artifact@v3" + - name: Generate Checksums 🪪 + if: fromJSON(steps.check.outputs.validTag) + run: | + : Generate Checksums 🪪 + if [[ "${RUNNER_DEBUG}" ]]; then set -x; fi + shopt -s extglob + + echo "### Checksums" > ${{ github.workspace }}/CHECKSUMS.txt + for file in ${{ github.workspace }}/@(*.exe|*.deb|*.ddeb|*.pkg|*.tar.gz|*.tar.xz|*.zip); do + echo " ${file##*/}: $(sha256sum "${file}" | cut -d " " -f 1)" >> ${{ github.workspace }}/CHECKSUMS.txt + done + - name: "Create Release" uses: "softprops/action-gh-release@1e07f4398721186383de40550babbdf2b84acfc5" with: draft: true tag_name: "${{ steps.metadata.outputs.version }}" name: "${{ steps.metadata.outputs.version }}" + body_path: ${{ github.workspace }}/CHECKSUMS.txt files: | ${{ github.workspace }}/**/*.tar.gz ${{ github.workspace }}/**/*.zip