forked from rayclaw/rayclaw
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeploy.sh
More file actions
executable file
·39 lines (30 loc) · 704 Bytes
/
deploy.sh
File metadata and controls
executable file
·39 lines (30 loc) · 704 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
#!/usr/bin/env bash
set -euo pipefail
ROOT_DIR="$(cd "$(dirname "$0")" && pwd)"
usage() {
cat <<'EOF'
Usage:
./deploy.sh
Workflow:
1. Run cargo clippy
2. Bump version, build web + binary, create tarball
3. Push commit, wait for CI, create GitHub Release with asset
4. install.sh fetches the release asset for Linux/macOS
EOF
}
case "${1:-}" in
-h|--help|help)
usage
exit 0
;;
esac
cd "$ROOT_DIR"
if [ ! -x "$ROOT_DIR/scripts/release.sh" ]; then
echo "Missing executable: scripts/release.sh" >&2
exit 1
fi
echo "Running pre-deploy checks..."
cargo clippy --all-targets -- -D warnings
echo "Starting release..."
"$ROOT_DIR/scripts/release.sh"
echo "Deploy complete."