diff --git a/.gitea/workflows/iso-builder.yml b/.gitea/workflows/iso-builder.yml index 7080ca4..476c850 100644 --- a/.gitea/workflows/iso-builder.yml +++ b/.gitea/workflows/iso-builder.yml @@ -85,7 +85,7 @@ jobs: echo "SHA256:" sha256sum "$ISO_SRC" - - name: Prepare ${{ matrix.host }} ISO artifact (split if needed) + - name: Prepare ${{ matrix.host }} ISO artifact run: | set -euo pipefail mkdir -p iso-result/artifact @@ -98,8 +98,10 @@ jobs: ISO_BASENAME="${{ matrix.host }}-installer.iso" ISO_DEST="iso-result/artifact/${ISO_BASENAME}" cp "$ISO_SRC" "$ISO_DEST" + # Emit sha256 as a separate file and print to log + sha256sum "$ISO_DEST" | tee "${ISO_DEST}.sha256" - SIZE=$(stat -c%s "$ISO_DEST") + SIZE=$(stat -c%s "$ISO_DEST") if [ "$SIZE" -gt 240000000 ]; then echo "ISO is $SIZE bytes; splitting into 200MB parts for artifact upload." split -b 200M -d -a 3 "$ISO_DEST" "${ISO_DEST}.part-"