deploy
Deploy a connected GitHub repo to SnapDeploy: create the container if needed, link the repo, build, and return the live URL or the error and build-log tail on failure.
Instructions
Deploy a connected GitHub repo to SnapDeploy: creates the container if needed, links the repo, builds, and waits for the result. Reply includes the live URL or, on failure, the error and build-log tail. On accounts without an Always-On/Sprint entitlement this uses one unit of the deploy limit (failed attempts count); Always-On accounts are uncapped.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| env | No | Environment variables to set before building (VITE_*/public-prefixed ones are applied at build time) | |
| port | No | App port if auto-detection needs an override | |
| repo | Yes | owner/name of a repo on the user's connected GitHub | |
| size | No | Container size: small (512 MB, free) | medium (2 GB, needs a STARTER Always-On) | large (4 GB, needs a PRO Always-On). Default small. If the account lacks the entitlement the platform returns its upgrade link — relay it, do not retry or silently fall back to small. | |
| branch | No | Branch to deploy (default: repo default branch) | |
| container | No | Container name (default: repo name, lowercased) |