123set -euo pipefail45repo_root="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"6out_dir="${1:-"$repo_root/.pages-dist"}"78rm -rf "$out_dir"9mkdir -p "$out_dir"1011# Publish the same script bytes at both the vanity root URL and the explicit path.12cp "$repo_root/select-mate.sh" "$out_dir/index.html"13cp "$repo_root/select-mate.sh" "$out_dir/select-mate.sh"14printf 'select-mate.sh\n' > "$out_dir/CNAME"15touch "$out_dir/.nojekyll"