-
Notifications
You must be signed in to change notification settings - Fork 231
44 lines (35 loc) · 1012 Bytes
/
deploy-prd.yml
File metadata and controls
44 lines (35 loc) · 1012 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Deploy to production
on:
workflow_dispatch:
# This allows manual triggering of the workflow
concurrency:
group: deploy-prod
cancel-in-progress: false
permissions:
contents: read
env:
NODE_OPTIONS: "--max-old-space-size=8192"
FLY_API_TOKEN: ${{ secrets.PRD_FLY_API_TOKEN }}
jobs:
deploy:
name: Deploy to Reflex Cloud
runs-on: ubuntu-latest
environment: production
steps:
- name: Checkout code
uses: actions/checkout@v6
with:
submodules: recursive
- name: Install the latest version of uv
uses: astral-sh/setup-uv@v7
with:
python-version: "3.12"
activate-environment: true
- name: Install the project
run: uv sync --locked --no-dev
- name: Update Reflex CLI
run: uv pip install reflex-hosting-cli -U
- name: Deploy to Reflex
id: deploy
run: |
reflex deploy --token ${{ secrets.PRD_TOKEN }} --no-interactive --config cloud-prod.yml