forked from microclaw/microclaw
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeploy.sh
More file actions
executable file
·58 lines (43 loc) · 1009 Bytes
/
deploy.sh
File metadata and controls
executable file
·58 lines (43 loc) · 1009 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#!/usr/bin/env bash
set -euo pipefail
ROOT_DIR="$(cd "$(dirname "$0")" && pwd)"
MODE="${1:-all}" # all|release
usage() {
cat <<'EOF'
Usage:
./deploy.sh [all|release]
Modes:
all Publish GitHub Release asset (installer mode) + update Homebrew tap (default)
release Alias of all (kept for clarity)
Notes:
- This script delegates to scripts/release_homebrew.sh.
- Configure TAP_DIR if your local tap checkout is not in the default path.
EOF
}
case "$MODE" in
-h|--help|help)
usage
exit 0
;;
all|release)
;;
*)
echo "Unknown mode: $MODE" >&2
usage >&2
exit 1
;;
esac
cd "$ROOT_DIR"
if [ ! -x "$ROOT_DIR/scripts/release_homebrew.sh" ]; then
echo "Missing executable: scripts/release_homebrew.sh" >&2
exit 1
fi
echo "Running pre-deploy checks..."
cargo clippy --all-targets -- -D warnings
echo "Starting deploy ($MODE)..."
"$ROOT_DIR/scripts/release_homebrew.sh"
echo "Deploy complete."
cd website
sh ./deploy_pages.sh
cd ..
echo "ALL DONE"