Skip to content

Commit 9ce6e03

Browse files
committed
feat: create environment file using individual variables
1 parent 1496bff commit 9ce6e03

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/eas-build.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -70,17 +70,17 @@ jobs:
7070
- name: 📦 Setup Node + PNPM + install deps
7171
uses: ./.github/actions/setup-node-pnpm-install
7272

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-
8073
- name: ⚙️ Run Prebuild
8174
run: pnpm prebuild:${{ inputs.environment }}
8275

8376
- name: 📱 Run Android Build
77+
env:
78+
API_URL: ${{ secrets.API_URL }}
79+
VAR_NUMBER: ${{secrets.VAR_NUMBER }}
80+
VAR_BOOL: ${{secrets.VAR_BOOL }}
81+
SECRET_KEY: ${{secrets.SECRET_KEY }}
82+
WEBSITE_URL: ${{secrets.WEBSITE_URL }}
83+
TERMS_OF_SERVICE_URL: ${{secrets.TERMS_OF_SERVICE_URL }}
8484
if: ${{ inputs.android == true }}
8585
run: pnpm build:${{ inputs.environment }}:android --non-interactive --no-wait --message "Build ${{ inputs.environment }}" --local --non-interactive
8686

0 commit comments

Comments
 (0)