mirror of
https://github.com/pezkuwichain/pwap.git
synced 2026-07-26 15:35:41 +00:00
85b2c48025
Adds a deploy-supabase job to the quality gate so the self-hosted Supabase side ships the same way as the frontend/backend instead of by hand: - gated by the existing telegram-gate (owner approves once, in Telegram) - runs on main-push in parallel with deploy-app, so edge functions, DB migrations and the new frontend go live in one post-approval window - rsyncs the edge-function dirs into the edge-runtime volume (hot-reloaded, no restart; --no-delete preserves the telegram-* functions) - applies pending migrations via deploy/apply-migrations.sh: idempotent and transactional, tracked in supabase_migrations.schema_migrations, skips non-versioned files (COMBINED_*), never half-records a failed migration - post-deploy health check verifies the fund-custody guards took effect (anon lost EXECUTE on the escrow/withdraw RPCs; both freeze triggers exist) - Telegram alert on success/failure Requires repo secrets SUPABASE_VPS_HOST/USER/SSH_KEY/PORT.