1. Create a deploy key
In the dashboard, open API and create a key with the scopesapps:read and apps:deploy, limited to the one application. Save it as a CI secret named SERVBASE_API_KEY, and the app’s ID as SERVBASE_APP_ID.
2. Add the deploy script
The script starts a deployment, waits until it finishes, prints the build log, and exits with an error if the build failed.scripts/servbase-deploy.sh
3. Run it in your pipeline
- GitHub Actions
- GitLab CI
- Node.js
.github/workflows/deploy.yml
