From 48f4892432448768345a9b15c60750de16bcd165 Mon Sep 17 00:00:00 2001 From: Harry Li Date: Wed, 25 Sep 2024 12:18:14 -0400 Subject: [PATCH] added environment variables --- .github/workflows/client-build.yml | 6 ++++++ .github/workflows/deploy.yml | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/.github/workflows/client-build.yml b/.github/workflows/client-build.yml index a0a17d8..b8b2173 100644 --- a/.github/workflows/client-build.yml +++ b/.github/workflows/client-build.yml @@ -38,5 +38,11 @@ jobs: cache: 'npm' - name: Install dependencies run: npm ci + - name: Set env + shell: bash + run: | + echo "VITE_OPENAI_API_KEY=test" >> $GITHUB_ENV + echo "VITE_DEMO_MODE=true" >> $GITHUB_ENV + echo "GITHUB_PAGES=true" >> $GITHUB_ENV - name: Build run: npm run build \ No newline at end of file diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index d0839da..c11fbd9 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -37,6 +37,12 @@ jobs: cache: 'npm' - name: Install dependencies run: npm ci + - name: Set env + shell: bash + run: | + echo "VITE_OPENAI_API_KEY=test" >> $GITHUB_ENV + echo "VITE_DEMO_MODE=true" >> $GITHUB_ENV + echo "GITHUB_PAGES=true" >> $GITHUB_ENV - name: Build run: npm run build - name: Setup Pages