Deploy from Git
Connect a repository so every push deploys and production follows a branch.
Connect a repository once; then a push to the production branch deploys to production, and any other push deploys a preview.
Connect a repository
| Host | How |
|---|---|
| Sypnia Git | run git connect sypnia:<org>/<repo>: no app to install |
| GitHub | run git connect github:<owner>/<repo>: installs the Sypnia GitHub App on the repository, with read access to code and write access to checks and deployments |
npx @sypnia/run git connect github:laespiga/web --production-branch mainWhat happens on a push
| Push to | Result |
|---|---|
| the production branch | a build; when it passes, production moves to the new deploy |
| another branch with an open pull request | a build and a preview; the pull request gets a comment with its address |
| any other branch | a build and a deploy reachable at its own address, if branches allows it |
A check run on the commit says building, ready or failed, with a link to the logs.
Settings
production.branch: which branch is production (defaultmain).production.auto:falsemakes production deploys wait forrun promote.ignore: paths that do not trigger a build (docs/**), for monorepos.root: the app’s folder in a monorepo.
Without connecting
The CLI deploys a folder from any CI: npx @sypnia/run deploy --env production --token "$SYPNIA_RUN_TOKEN", with a deploy token.