Update build.yml

Signed-off-by: Michal <michal@tar.black>
main
Michal 2 years ago committed by GitHub
parent 9913fdf0d7
commit dd344fbff7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -35,7 +35,9 @@ jobs:
# Build ISO and rename to match BUILD_DATE # Build ISO and rename to match BUILD_DATE
bash build.sh --build-iso bash build.sh --build-iso
mv *.iso crystal-live-${BUILD_DATE}-x86_64.iso 2> /dev/null if [[ ! "${ls *.iso)" == "crystal-live-${BUILD_DATE}-x86_64.iso ]]; then
mv *.iso crystal-live-${BUILD_DATE}-x86_64.iso
fi
md5sum *.iso > MD5SUM-iso md5sum *.iso > MD5SUM-iso
# Remove chrooted.sh in between operations # Remove chrooted.sh in between operations
@ -44,7 +46,7 @@ jobs:
# Likewise, but for the rootfs # Likewise, but for the rootfs
bash build.sh --build-bootstrap bash build.sh --build-bootstrap
md5sum *.tar.gz > MD5SUM-rootfs md5sum *.tar.gz > MD5SUM-rootfs
mv *.tar.gz crystal-rootfs-${BUILD_DATE}-x86_64.tar.gz 2> /dev/null mv *.tar.gz crystal-rootfs-${BUILD_DATE}-x86_64.tar.gz
# Set upload name to BUILD_DATE # Set upload name to BUILD_DATE
echo "::set-output name=date::${BUILD_DATE}" echo "::set-output name=date::${BUILD_DATE}"

Loading…
Cancel
Save