Reflex Deploy with Github Actions
This GitHub Action simplifies the deployment of Reflex applications to Reflex Cloud. It handles setting up the environment, installing the Reflex CLI, and deploying your app with minimal configuration.
This action requires reflex>=0.6.6
Features:
- Deploy Reflex apps directly from your GitHub repository to Reflex Cloud.
- Supports subdirectory-based app structures.
- Securely uses authentication tokens via GitHub Secrets.
Usage
Add the Action to Your Workflow
Create a .github/workflows/deploy.yml
file in your repository and add the following:
Set Up Your Secrets
Store your Reflex authentication token securely in your repository's secrets:
- Go to your GitHub repository.
- Navigate to Settings > Secrets and variables > Actions > New repository secret.
- Create new secrets for
REFLEX_AUTH_TOKEN
andREFLEX_PROJECT_ID
.
(Create a REFLEX_AUTH_TOKEN
in the tokens tab of your UI, check out these docs.
The REFLEX_PROJECT_ID
can be found in the UI when you click on the How to deploy button on the top right when inside a project and copy the ID after the --project
flag.)