Skip to content

Commit a37fd7d

Browse files
committed
Add public envs to build workflow
1 parent b1dd06c commit a37fd7d

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

.github/workflows/build-mobile.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,12 @@ jobs:
6969
- name: Install web dependencies
7070
run: npm install --workspace=web
7171

72+
- name: Save public env variables into .env file
73+
run: |
74+
echo NEXT_PUBLIC_BACKEND_URL=${{ vars.NEXT_PUBLIC_BACKEND_URL}} >> web/.env
75+
echo NEXT_PUBLIC_CDN_URL=${{ vars.NEXT_PUBLIC_CDN_URL}} >> web
76+
echo NEXT_PUBLIC_STORAGE_CONTAINER=${{ vars.NEXT_PUBLIC_STORAGE_CONTAINER}} >> web/.env
77+
7278
- name: Build Web App
7379
run: npm run web-build
7480

.github/workflows/release-mobile.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,12 @@ jobs:
6666
- name: Install web dependencies
6767
run: npm install --workspace=web
6868

69+
- name: Save public env variables into .env file
70+
run: |
71+
echo NEXT_PUBLIC_BACKEND_URL=${{ vars.NEXT_PUBLIC_BACKEND_URL}} >> web/.env
72+
echo NEXT_PUBLIC_CDN_URL=${{ vars.NEXT_PUBLIC_CDN_URL}} >> web
73+
echo NEXT_PUBLIC_STORAGE_CONTAINER=${{ vars.NEXT_PUBLIC_STORAGE_CONTAINER}} >> web/.env
74+
6975
- name: Build Web App
7076
run: npm run web-build
7177

0 commit comments

Comments
 (0)