git-tutorial/build-and-update.sh
2023-11-21 20:24:23 +00:00

15 lines
437 B
Bash
Executable File

#!/usr/bin/env bash
set -euET -o pipefail
nix build
cp result/www/directory_hashes.js directory_hashes.js
cp result/www/favicon.ico favicon.ico
cp result/www/sitemap.html sitemap.html
if test -n "$(git status --short)"; then git commit -a --amend; fi
nix build
diff result/www/directory_hashes.js directory_hashes.js
diff result/www/favicon.ico favicon.ico
diff result/www/sitemap.html sitemap.html
./.github/print-and-compare-ipfs.sh