-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeploy-repos.sh
More file actions
executable file
·56 lines (44 loc) · 1.92 KB
/
Copy pathdeploy-repos.sh
File metadata and controls
executable file
·56 lines (44 loc) · 1.92 KB
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
#!/usr/bin/env bash
# SPDX-License-Identifier: MPL-2.0
# Deploy all repos to Cloudflare Pages
export CLOUDFLARE_API_TOKEN="xjmFyko52yeQ-3DPYxDTOZwM3DYwqRFU84f0UN40"
export CLOUDFLARE_ACCOUNT_ID="b72dd54ed3ee66088950c82e0301edbb"
REPOS_DIR="$HOME/Documents/hyperpolymath-repos"
declare -A PROJECTS=(
[affinescript]="affinescript"
[anvomidav]="anvomidav"
[betlang]="betlang"
[eclexia]="eclexia"
[ephapax]="ephapax"
[error-lang]="error-lang"
[my-lang]="my-lang"
[oblibeny]="oblibeny"
[reposystem]="reposystem"
[verisimdb]="verisimdb"
)
echo "🚀 Deploying repos to Cloudflare Pages"
echo "═══════════════════════════════════════════════════════════════════"
for project in "${!PROJECTS[@]}"; do
repo="${PROJECTS[$project]}"
repo_path="$REPOS_DIR/$repo"
echo ""
echo "📦 $project"
if [ ! -d "$repo_path" ]; then
echo " ❌ Repo not found: $repo_path"
continue
fi
echo " 📤 Deploying from $repo..."
cd "$repo_path" || continue
deno run -A npm:wrangler pages deploy . --project-name="$project" --branch=main 2>&1 | grep -E "✨|Deployment complete|View your site"
if [ ${PIPESTATUS[0]} -eq 0 ]; then
echo " ✅ Deployed successfully"
else
echo " ⚠️ Deployment completed (check output)"
fi
done
echo ""
echo "═══════════════════════════════════════════════════════════════════"
echo "✅ Deployment batch complete!"
echo ""
echo "📋 Next: Check deployment status at https://dash.cloudflare.com/pages"
echo "═══════════════════════════════════════════════════════════════════"