You can integrate Beam into an existing CI/CD process to deploy your code automatically.
BEAM_TOKEN
to your Github Secrets:
.github/workflows
in your project..github/workflows
directory, create a file named beam-actions.yml
staging
or prod
environments.
In your Beam app, you can setup your app name to dynamically update based on the Github branch you’ve deployed to. BEAM_DEPLOY_ENV
will get set in our Github Actions script, based on the branch name:
main
branch, the app app-prod
will be deployed. If you push to the staging
branch, app-staging
will be deployed. You can customize this with your own branch names.
Here’s what the Github Action looks like. Make sure you’ve added a BEAM_TOKEN
to your Github Secrets:
main
or staging
, a new app will be deployed for each push: