Skip to content

Commit 639c54d

Browse files
docs: add instructions to upload envfiles to eas secrets
1 parent 9737a93 commit 639c54d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

EAS.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@ To be able to use Expo Application Services to upload your app to App Store and
66

77
To be able to trigger the eas-build github action you will have to add the `EXPO_TOKEN` secret to the repo settings. This secret is a required access token for your Expo account. https://expo.dev/settings/access-tokens
88

9+
You will also have to upload your envfiles to EAS secrets:
10+
11+
`eas secret:create --scope project --name ENVIRONMENT_FILE_PRODUCTION --value .env.production --type file`
12+
`eas secret:create --scope project --name ENVIRONMENT_FILE_STAGING --value .env.staging --type file`
13+
14+
Each one per environment you'll want to build, it's on [env.js](env.js) that the process looks for the right envfile depending on where the build is being run and the chosen environment.
15+
916
### Submit to Google Play Store
1017

1118
The first submission of the app needs to be performed manually. Learn more: https://expo.fyi/first-android-submission. Only after having a valid version submitted you can submit automatically using EAS.

0 commit comments

Comments
 (0)