Skip to content

Commit af6865b

Browse files
committed
chore: fix ci
1 parent 31d1e9c commit af6865b

File tree

1 file changed

+7
-22
lines changed

1 file changed

+7
-22
lines changed

.github/workflows/sample-distribution.yml

Lines changed: 7 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
runs-on: [macos-15]
1818
strategy:
1919
matrix:
20-
node-version: [ 24.x ]
20+
node-version: [24.x]
2121
steps:
2222
- name: Connect Bot
2323
uses: webfactory/[email protected]
@@ -57,12 +57,12 @@ jobs:
5757
MATCH_GIT_BASIC_AUTHORIZATION: ${{ secrets.MATCH_GIT_BASIC_AUTHORIZATION }}
5858
APPSTORE_API_KEY: ${{ secrets.APPSTORE_API_KEY }}
5959

60-
build_and_deploy_android_s3:
60+
build_and_deploy_android_firebase:
6161
name: Build SampleApp Android and Deploy-${{ github.ref == 'refs/heads/develop' }}
6262
runs-on: ubuntu-latest
6363
strategy:
6464
matrix:
65-
node-version: [ 24.x ]
65+
node-version: [24.x]
6666
steps:
6767
- name: Use Node.js ${{ matrix.node-version }}
6868
uses: actions/setup-node@v4
@@ -78,22 +78,7 @@ jobs:
7878
uses: ./.github/actions/install-and-build-sdk
7979
- name: Build
8080
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

Comments
 (0)