-
Notifications
You must be signed in to change notification settings - Fork 201
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* workflow * no fly --------- Co-authored-by: simon <[email protected]>
- Loading branch information
Showing
1 changed file
with
51 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
name: Deploy to dev | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
concurrency: | ||
group: deploy-dev | ||
cancel-in-progress: false | ||
|
||
env: | ||
CP_WEB_URL: https://cloud.rxc.app/ | ||
CP_BACKEND_URL: https://cloud-f188e2cd-51fb-4b29-b546-2ce4b9efc5d5.fly.dev/ | ||
PROMETHEUS_MULTIPROC_DIR: /tmp/prometheus_multiproc_dir | ||
|
||
jobs: | ||
deploy: | ||
name: Deploy to Reflex and Fly.io | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: src/app | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.12' | ||
|
||
- name: Install Requirements | ||
run: pip install -r requirements.txt | ||
|
||
- name: Update Reflex | ||
run: pip install reflex -U | ||
|
||
# temporary fix until reflex-cli is published to pypi | ||
- name: Update Reflex CLI | ||
run: pip install reflex-hosting-cli -U | ||
|
||
- name: Deploy to Reflex | ||
id: deploy | ||
run: | | ||
reflex deploy --project ${{ secrets.DEV_PROJECT_ID }} --token ${{ secrets.DEV_TOKEN }} --no-interactive | ||