How To: Deploy¶
Automatic Deployment (CI/CD)¶
Pushing to main automatically deploys to staging via GitHub Actions.
Production deployments are triggered manually via GitHub Actions workflow dispatch.
See CI/CD Reference for full pipeline details.
Manual Deployment¶
To Staging¶
To Production¶
Smoke Test After Deploy¶
First-Time Setup (New Stage)¶
-
Set SST secrets for the stage:
-
Deploy:
-
Bootstrap database schema (one-time for new RDS instances):
-
Verify:
Rollback¶
SST does not have a built-in rollback command. To rollback:
- Revert the commit on
main - Push -- CI will deploy the reverted state
- Or deploy a specific commit:
git checkout <sha> && npx sst deploy --stage staging
Prerequisites¶
- AWS credentials configured (or OIDC via GitHub Actions)
- SST secrets set for the target stage
- See AWS OIDC Setup for CI auth