release.sh (611B)
1 #!/usr/bin/env bash 2 3 set -e 4 5 VERSION="v0.2.0" 6 git tag -a "${VERSION}" -m "Release ${VERSION}" 7 git push origin "${VERSION}" 8 9 rm -rf tmp || echo "tmp not exist" 10 mkdir tmp 11 zig build -Doptimize=ReleaseSafe -Dtarget=x86_64-linux 12 mv zig-out/bin/zigvm tmp/x86_64-linux 13 zig build -Doptimize=ReleaseSafe -Dtarget=aarch64-linux 14 mv zig-out/bin/zigvm tmp/aarch64-linux 15 16 ## checksums & minisign 17 pushd tmp 18 sha256sum x86_64-linux > x86_64-linux.sha256 19 minisign -Sm x86_64-linux 20 sha256sum aarch64-linux > aarch64-linux.sha256 21 minisign -Sm aarch64-linux 22 popd 23 24 rsync -r tmp/ "root@rpi3:/var/www/dl.mfashby.net/zigvm/${VERSION}/"