denise-oneill-inbox-ru's picture
D8 staging from 92665ef4298ecff6735b080ff7901f2c19f719a7 (part 2)
38367b5 verified
Raw History Blame Contribute Delete
269 Bytes
#!/usr/bin/env bash
set -euo pipefail
root="$(git rev-parse --show-toplevel)"
cd "$root"
name="rails-8-blog-source-$(date -u +%Y%m%dT%H%M%SZ).tar.gz"
git archive --format=tar.gz --output="../$name" HEAD
sha256sum "../$name" > "../$name.sha256"
printf '%s\n' "../$name"