Skip to content

Commit

Permalink
added environment variables
Browse files Browse the repository at this point in the history
  • Loading branch information
Harry Li committed Sep 25, 2024
1 parent 19d0c3e commit 48f4892
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/client-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
6 changes: 6 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 48f4892

Please sign in to comment.