|
17 | 17 | runs-on: [macos-15] |
18 | 18 | strategy: |
19 | 19 | matrix: |
20 | | - node-version: [ 24.x ] |
| 20 | + node-version: [24.x] |
21 | 21 | steps: |
22 | 22 | - name: Connect Bot |
23 | 23 | uses: webfactory/[email protected] |
@@ -57,12 +57,12 @@ jobs: |
57 | 57 | MATCH_GIT_BASIC_AUTHORIZATION: ${{ secrets.MATCH_GIT_BASIC_AUTHORIZATION }} |
58 | 58 | APPSTORE_API_KEY: ${{ secrets.APPSTORE_API_KEY }} |
59 | 59 |
|
60 | | - build_and_deploy_android_s3: |
| 60 | + build_and_deploy_android_firebase: |
61 | 61 | name: Build SampleApp Android and Deploy-${{ github.ref == 'refs/heads/develop' }} |
62 | 62 | runs-on: ubuntu-latest |
63 | 63 | strategy: |
64 | 64 | matrix: |
65 | | - node-version: [ 24.x ] |
| 65 | + node-version: [24.x] |
66 | 66 | steps: |
67 | 67 | - name: Use Node.js ${{ matrix.node-version }} |
68 | 68 | uses: actions/setup-node@v4 |
|
78 | 78 | uses: ./.github/actions/install-and-build-sdk |
79 | 79 | - name: Build |
80 | 80 | working-directory: examples/SampleApp |
81 | | - run: | |
82 | | - mkdir android/app/src/main/assets |
83 | | - mkdir tmp |
84 | | - yarn react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest tmp |
85 | | - cd android |
86 | | - rm -rf $HOME/.gradle/caches/ && ./gradlew assembleRelease |
87 | | - - name: Configure AWS credentials |
88 | | - uses: aws-actions/configure-aws-credentials@v1 |
89 | | - if: ${{ github.ref == 'refs/heads/develop' }} |
90 | | - with: |
91 | | - aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} |
92 | | - aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} |
93 | | - aws-region: us-east-1 |
94 | | - - name: Upload APK |
95 | | - if: ${{ github.ref == 'refs/heads/develop' }} |
96 | | - # https://getstream.io/downloads/rn-sample-app.apk |
97 | | - run: | |
98 | | - cp examples/SampleApp/android/app/build/outputs/apk/release/app-release.apk rn-sample-app.apk |
99 | | - aws s3 cp rn-sample-app.apk s3://${{ secrets.AWS_S3_BUCKET }} --sse AES256 |
| 81 | + run: bundle exec fastlane android firebase_build_and_upload deploy:${{ github.ref == 'refs/heads/develop' }}; |
| 82 | + env: |
| 83 | + ANDROID_FIREBASE_APP_ID: ${{ secrets.ANDROID_FIREBASE_APP_ID }} |
| 84 | + FIREBASE_CREDENTIALS_JSON: ${{ secrets.FIREBASE_CREDENTIALS_JSON }} |
0 commit comments