From 8f1d5faff849c6bacca69e70ee39a2ff58173569 Mon Sep 17 00:00:00 2001 From: Simon Young <40179067+Kastier1@users.noreply.github.com> Date: Fri, 17 Jan 2025 17:59:09 -0800 Subject: [PATCH] workflow (#1176) * workflow * no fly --------- Co-authored-by: simon --- .github/workflows/deploy-dev.yml | 51 ++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 .github/workflows/deploy-dev.yml diff --git a/.github/workflows/deploy-dev.yml b/.github/workflows/deploy-dev.yml new file mode 100644 index 0000000000..e7ee36fd22 --- /dev/null +++ b/.github/workflows/deploy-dev.yml @@ -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 + + + + +