Skip to content

Add Cloudflare Pages Direct Upload fallback deploy Action#245

Merged
hyperpolymath merged 1 commit into
mainfrom
claude/awesome-davinci-8afqgy
Jun 24, 2026
Merged

Add Cloudflare Pages Direct Upload fallback deploy Action#245
hyperpolymath merged 1 commit into
mainfrom
claude/awesome-davinci-8afqgy

Conversation

@hyperpolymath

Copy link
Copy Markdown
Owner

Summary

  • Adds .github/workflows/pages-deploy.yml — Cloudflare Pages Direct Upload via npx wrangler@latest pages deploy site/ --project-name=boj-server
  • Bypasses Cloudflare's build system entirely, which was failing because it reads .tool-versions and tries (and fails) to install Idris2
  • The Cloudflare dashboard also had npx wrangler deploy (the Workers command, not Pages); this Action uses the correct wrangler pages deploy command

Why Direct Upload

The Cloudflare build environment:

  1. Reads .tool-versions via asdf-style tooling
  2. Attempts to install Idris2 0.8.0 → fails (not in their build image)
  3. Even if it got past that, the deploy command in the dashboard was npx wrangler deploy (Workers-only)

Direct Upload skips all of this: we ship the pre-built site/ directly from GitHub Actions.

Test plan

  • Add CLOUDFLARE_API_TOKEN and CLOUDFLARE_ACCOUNT_ID secrets to the repo (Settings → Secrets → Actions)
  • Trigger workflow dispatch or merge to main — verify the Action deploys successfully
  • Confirm boj-server.net is live post-deploy

Generated by Claude Code

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jun 24, 2026

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
❌ Deployment failed
View logs
boj-server 4609216 Jun 24 2026, 02:43 PM

@hyperpolymath hyperpolymath marked this pull request as ready for review June 24, 2026 14:43
Triggers on push to main. Uses `wrangler pages deploy site/` (Direct
Upload) which bypasses the Cloudflare build system entirely — no
.tool-versions install attempt, no confusion with the Workers-only
`wrangler deploy` command that was set in the dashboard.

Required repository secrets: CLOUDFLARE_API_TOKEN, CLOUDFLARE_ACCOUNT_ID.
@hyperpolymath hyperpolymath force-pushed the claude/awesome-davinci-8afqgy branch from 1df154c to 4609216 Compare June 24, 2026 14:43
@hyperpolymath hyperpolymath merged commit a952e49 into main Jun 24, 2026
13 of 14 checks passed
@hyperpolymath hyperpolymath deleted the claude/awesome-davinci-8afqgy branch June 24, 2026 14:43
@github-actions

Copy link
Copy Markdown

🔍 Hypatia Security Scan

Findings: 217 issues detected

Severity Count
🔴 Critical 15
🟠 High 130
🟡 Medium 72

⚠️ Action Required: Critical security issues found!

View findings
[
  {
    "reason": "Action actions/checkout@v4 needs attention",
    "type": "unpinned_action",
    "file": "pages-deploy.yml",
    "action": "pin_sha",
    "rule_module": "workflow_audit",
    "severity": "medium"
  },
  {
    "reason": "Issue in pages-deploy.yml",
    "type": "missing_timeout_minutes",
    "file": "pages-deploy.yml",
    "action": "flag",
    "rule_module": "workflow_audit",
    "severity": "medium"
  },
  {
    "reason": "Issue in scorecard-enforcer.yml",
    "type": "missing_timeout_minutes",
    "file": "scorecard-enforcer.yml",
    "action": "flag",
    "rule_module": "workflow_audit",
    "severity": "medium"
  },
  {
    "reason": "Issue in scorecard-enforcer.yml",
    "type": "scorecard_publish_with_run_step",
    "file": "scorecard-enforcer.yml",
    "action": "split_scorecard_publish_job",
    "rule_module": "workflow_audit",
    "severity": "high"
  },
  {
    "reason": "Issue in instant-sync.yml",
    "type": "secret_action_without_presence_gate",
    "file": "instant-sync.yml",
    "action": "peter-evans/repository-dispatch",
    "rule_module": "workflow_audit",
    "severity": "high"
  },
  {
    "reason": "Issue in codeql.yml",
    "type": "codeql_missing_actions_language",
    "file": "codeql.yml",
    "action": "flag",
    "rule_module": "workflow_audit",
    "severity": "medium"
  },
  {
    "reason": "TypeScript file detected -- banned language",
    "type": "banned_language_file",
    "file": "/home/runner/work/boj-server/boj-server/cartridges/academic-workflow-mcp/adapter/mod.ts",
    "action": "flag",
    "rule_module": "cicd_rules",
    "severity": "critical"
  },
  {
    "reason": "TypeScript file detected -- banned language",
    "type": "banned_language_file",
    "file": "/home/runner/work/boj-server/boj-server/cartridges/ephapax-mcp/adapter/mod.ts",
    "action": "flag",
    "rule_module": "cicd_rules",
    "severity": "critical"
  },
  {
    "reason": "TypeScript file detected -- banned language",
    "type": "banned_language_file",
    "file": "/home/runner/work/boj-server/boj-server/cartridges/bofig-mcp/adapter/mod.ts",
    "action": "flag",
    "rule_module": "cicd_rules",
    "severity": "critical"
  },
  {
    "reason": "TypeScript file detected -- banned language",
    "type": "banned_language_file",
    "file": "/home/runner/work/boj-server/boj-server/cartridges/fireflag-mcp/adapter/mod.ts",
    "action": "flag",
    "rule_module": "cicd_rules",
    "severity": "critical"
  }
]

Powered by Hypatia Neurosymbolic CI/CD Intelligence

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant