All checks were successful
Deploy — Staging / Lint, Typecheck & Test (push) Successful in 1m27s
Deploy — Staging / Build & push — admin (push) Successful in 54s
Deploy — Staging / Build & push — storefront (push) Successful in 55s
Deploy — Staging / Deploy to staging VPS (push) Successful in 20s
\$HOME in an unquoted heredoc expands on the runner (not the VPS), so the VPS received the literal runner path (/root/staging/.env) which didn't exist. Using the explicit /opt/staging/.env path (consistent with compose.yml and mkdir) fixes the permission denied error. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>