Skip to content

Commit 8f1d5fa

Browse files
authored
workflow (#1176)
* workflow * no fly --------- Co-authored-by: simon <[email protected]>
1 parent 492fb93 commit 8f1d5fa

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed

.github/workflows/deploy-dev.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Deploy to dev
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
concurrency:
9+
group: deploy-dev
10+
cancel-in-progress: false
11+
12+
env:
13+
CP_WEB_URL: https://cloud.rxc.app/
14+
CP_BACKEND_URL: https://cloud-f188e2cd-51fb-4b29-b546-2ce4b9efc5d5.fly.dev/
15+
PROMETHEUS_MULTIPROC_DIR: /tmp/prometheus_multiproc_dir
16+
17+
jobs:
18+
deploy:
19+
name: Deploy to Reflex and Fly.io
20+
runs-on: ubuntu-latest
21+
defaults:
22+
run:
23+
working-directory: src/app
24+
steps:
25+
- name: Checkout code
26+
uses: actions/checkout@v3
27+
28+
- name: Set up Python
29+
uses: actions/setup-python@v4
30+
with:
31+
python-version: '3.12'
32+
33+
- name: Install Requirements
34+
run: pip install -r requirements.txt
35+
36+
- name: Update Reflex
37+
run: pip install reflex -U
38+
39+
# temporary fix until reflex-cli is published to pypi
40+
- name: Update Reflex CLI
41+
run: pip install reflex-hosting-cli -U
42+
43+
- name: Deploy to Reflex
44+
id: deploy
45+
run: |
46+
reflex deploy --project ${{ secrets.DEV_PROJECT_ID }} --token ${{ secrets.DEV_TOKEN }} --no-interactive
47+
48+
49+
50+
51+

0 commit comments

Comments
 (0)