feat: create eas config #78
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# name: submit app to play store | |
# on : | |
# push : | |
# branches : [ master ] | |
# jobs: | |
# submit: | |
# runs-on: ubuntu-latest | |
# defaults: | |
# run: | |
# shell: bash | |
# working-directory: ./app | |
# steps: | |
# - name: π Setup repo | |
# uses: actions/checkout@v3 | |
# - name: π Setup node | |
# uses: actions/setup-node@v3 | |
# with: | |
# node-version: 16.x | |
# cache: yarn | |
# cache-dependency-path: app/yarn.lock | |
# - name: π Config files | |
# run: | | |
# echo "$GOOGLE_SERVICES" > google-services.json | |
# echo "$FIREBASE_CONFIG_DEV" > ./src/config/authmiaajuda-firebase-dev.json | |
# echo "$FIREBASE_CONFIG" > ./src/config/authmiaajuda-firebase.json | |
# echo "$ENV_VARIABLE" > .env | |
# echo "$SERVICE_ACCOUNT_KEY" > ./serviceAccountKey.json | |
# env: | |
# GOOGLE_SERVICES: ${{ secrets.GOOGLE_SERVICES }} | |
# FIREBASE_CONFIG_DEV: ${{ secrets.FIREBASE_CONFIG_DEV }} | |
# FIREBASE_CONFIG: ${{ secrets.FIREBASE_CONFIG }} | |
# ENV_VARIABLE: ${{ secrets.ENV_VARIABLE }} | |
# SERVICE_ACCOUNT_KEY: ${{ secrets.SERVICE_ACCOUNT_KEY }} | |
# - name: π Setup Expo and EAS | |
# uses: expo/expo-github-action@v7 | |
# with: | |
# expo-version: latest | |
# eas-version: latest | |
# token: ${{ secrets.EXPO_TOKEN }} | |
# - name: π¦ Install dependencies | |
# run: yarn install --pure-lockfile --non-interactive | |
# - name: π¦ Build prod aab by expo build | |
# run: expo build:android -t app-bundle --release-channel=prod --non-interactive | |
# - name: π¦ Retrieve last build url version | |
# run: echo "BUILD_URL=$(expo url:apk)" >> $GITHUB_ENV | |
# - name: π¦ Submit latest aab build to play store as production app | |
# run: eas submit -p android --url ${{ env.BUILD_URL }} |