Skip to content

Commit 1496bff

Browse files
committed
feat: create environment file
1 parent 811f994 commit 1496bff

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/eas-build.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ on:
4747
jobs:
4848
Build:
4949
runs-on: ubuntu-latest
50+
environment: app-${{ inputs.environment }}
5051
steps:
5152
- name: Check for EXPO_TOKEN
5253
run: |
@@ -69,6 +70,13 @@ jobs:
6970
- name: 📦 Setup Node + PNPM + install deps
7071
uses: ./.github/actions/setup-node-pnpm-install
7172

73+
# In secrets.ENVIRONMENT_FILE we have the whole environment file for the current environment
74+
# we need to create a local .env file with the content of the environment file
75+
- name: Create environment file
76+
env:
77+
ENVIRONMENT_FILE: ${{ secrets.ENVIRONMENT_FILE }}
78+
run: echo "$ENVIRONMENT_FILE" > .env
79+
7280
- name: ⚙️ Run Prebuild
7381
run: pnpm prebuild:${{ inputs.environment }}
7482

0 commit comments

Comments
 (0)