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