Skip to content

Commit 6911f53

Browse files
committed
feat: create environment file
1 parent 811f994 commit 6911f53

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/eas-build.yml

Lines changed: 6 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,11 @@ 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+
run: echo "${{ secrets.ENVIRONMENT_FILE }}" > .env.${{ inputs.environment }}
77+
7278
- name: ⚙️ Run Prebuild
7379
run: pnpm prebuild:${{ inputs.environment }}
7480

0 commit comments

Comments
 (0)