- SDK Version: 46
- Platforms(Android/iOS/web/all): Android/IOS
- eas Version: eas-cli/2.2.1
Hello everyone,
I am trying to set an automatic submition of my app after build with the github action CI.
Here is the workflow:
name: Build and Submit
on:
push:
branches:
- main
- ci-test
jobs:
build-and-submit:
name: EAS Build and auto submit
runs-on: ubuntu-latest
steps:
- name: Check for EXPO_TOKEN
run: |
if [ -z "${{ secrets.EXPO_TOKEN }}" ]; then
echo "You must provide an EXPO_TOKEN secret linked to this project's Expo account in this repo's secrets. Learn more: https://docs.expo.dev/eas-update/github-actions"
exit 1
fi
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup Node with yarn
uses: actions/setup-node@v2
with:
node-version: 16.x
cache: yarn
- name: ✨ Setup Expo
uses: expo/expo-github-action@v7
with:
expo-version: 6.x
eas-version: latest
token: ${{ secrets.EXPO_TOKEN }}
- name: 📦 Install dependencies
run: yarn install --frozen-lockfile
- name: 🚀 Build on EAS
run: eas build --profile production --platform all --non-interactive --auto-submit
I am using the --auto-submit
option to directly submit after successfull build. My problem here is that I don’t know how to securely store the serviceAccountKeyPath
file for android. I’m using a relative path locally to access it, but I don’t want to push this secret file on github. Is there any way to do this?
Here is my eas.json
config for submit:
"submit": {
"production": {
"ios": {},
"android": {
"serviceAccountKeyPath": "../api-keys/serviceAccountKeyPath.json"
}
},