Add deploy script, eval refresh script and Go-priced eval data
Deploy to Cloudflare Pages / deploy (push) Failing after 25s
Deploy to Cloudflare Pages / deploy (push) Failing after 25s
- scripts/deploy.sh: manual Cloudflare Pages deploy (same steps as CI) - scripts/refresh-evals.mjs: re-scrape Artificial Analysis + OpenCode Data into evals.js - evals.js now carries OpenCode Go list prices; Hy4 and LongCat 2.5 left empty rather than borrowing a neighbouring model's numbers - workflow creates the Pages project idempotently
This commit is contained in:
Executable
+30
@@ -0,0 +1,30 @@
|
||||
#!/usr/bin/env bash
|
||||
# Manual deploy to Cloudflare Pages (same steps the CI workflow runs).
|
||||
#
|
||||
# Requires either:
|
||||
# - CLOUDFLARE_API_TOKEN + CLOUDFLARE_ACCOUNT_ID exported in the environment, or
|
||||
# - an existing `wrangler login` session (~/.wrangler/config/default.toml)
|
||||
set -euo pipefail
|
||||
|
||||
cd "$(dirname "$0")/.."
|
||||
|
||||
PROJECT="${CLOUDFLARE_PAGES_PROJECT:-opencodogoevals}"
|
||||
|
||||
echo "==> staging site/"
|
||||
cp MODELS.md site/MODELS.md
|
||||
|
||||
if [ ! -d node_modules/wrangler ]; then
|
||||
echo "==> installing wrangler"
|
||||
npm install --no-save wrangler@^4
|
||||
fi
|
||||
|
||||
echo "==> ensuring Pages project '$PROJECT' exists"
|
||||
npx wrangler pages project create "$PROJECT" || echo " (project already exists)"
|
||||
|
||||
echo "==> deploying"
|
||||
npx wrangler pages deploy site \
|
||||
--project-name "$PROJECT" \
|
||||
--branch main \
|
||||
--commit-dirty=true
|
||||
|
||||
echo "==> done: https://$PROJECT.pages.dev"
|
||||
Reference in New Issue
Block a user