Add deploy script, eval refresh script and Go-priced eval data
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:
2026-10-21 15:27:11 +00:00
parent 9943adab09
commit 46447d422b
6 changed files with 266 additions and 36 deletions
+13 -1
View File
@@ -26,8 +26,20 @@ jobs:
- name: Stage markdown copy
run: cp MODELS.md site/MODELS.md
- name: Ensure Pages project exists
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
# Idempotent: creates the project on first run, no-ops afterwards.
run: npx wrangler pages project create opencodogoevals || echo "project already exists"
- name: Deploy to Cloudflare Pages
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
run: npx wrangler pages deploy site --project-name opencodogoevals --branch main --commit-hash ${{ gitea.sha }}
run: |
npx wrangler pages deploy site \
--project-name opencodogoevals \
--branch main \
--commit-hash "${{ gitea.sha }}" \
--commit-message "${{ gitea.event.head_commit.message }}"