Skip to content

Commit 6a03fb7

Browse files
committed
feat: add VITE_API_BASE_URL environment variable to multiple workflows
1 parent 049cda7 commit 6a03fb7

File tree

4 files changed

+6
-0
lines changed

4 files changed

+6
-0
lines changed

.github/workflows/create-release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ jobs:
5555
if: steps.check_release.outputs.exists == 'false'
5656
env:
5757
VITE_GA_API_SECRET: ${{ secrets.VITE_GA_API_SECRET }}
58+
VITE_API_BASE_URL: ${{ secrets.VITE_API_BASE_URL }}
5859
run: tsc -b && pnpm exec vite build --mode production
5960

6061
- name: Create dist.zip

.github/workflows/deploy-gh-pages.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ jobs:
3131
run: pnpm install
3232

3333
- name: Build for GitHub Pages
34+
env:
35+
VITE_API_BASE_URL: ${{ secrets.VITE_API_BASE_URL }}
3436
run: pnpm run build:gh-pages
3537

3638
- name: Deploy to gh-pages branch

.github/workflows/pr-build-check.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ jobs:
2828
run: pnpm install
2929

3030
- name: Build project
31+
env:
32+
VITE_API_BASE_URL: ${{ secrets.VITE_API_BASE_URL }}
3133
run: pnpm run build:local
3234

3335
- name: Build success

.github/workflows/upload-chrome-extension-draft.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ jobs:
3636
- name: Build extension
3737
env:
3838
VITE_GA_API_SECRET: ${{ secrets.VITE_GA_API_SECRET }}
39+
VITE_API_BASE_URL: ${{ secrets.VITE_API_BASE_URL }}
3940
run: tsc -b && pnpm exec vite build --mode production
4041

4142
- name: Create extension zip

0 commit comments

Comments
 (0)