-
Notifications
You must be signed in to change notification settings - Fork 4
58 lines (47 loc) · 1.89 KB
/
submit.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# 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 }}