From 25c78ae8b6e1cb4585fee07dd6119ed0718e9883 Mon Sep 17 00:00:00 2001 From: riteshshukla04 Date: Fri, 24 Oct 2025 23:36:52 +0530 Subject: [PATCH] feat: playstore --- .github/workflows/publish-beta.yml | 14 ++++++++++++-- android/fastlane/Fastfile | 1 + package.json | 1 + 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-beta.yml b/.github/workflows/publish-beta.yml index bcaa89a7..ca65a659 100644 --- a/.github/workflows/publish-beta.yml +++ b/.github/workflows/publish-beta.yml @@ -115,6 +115,16 @@ jobs: exit 1 fi + - name: 🔑 Setup Play Store credentials + run: | + if [ -n "${{ secrets.PLAY_STORE_SERVICE_ACCOUNT }}" ]; then + echo '${{ secrets.PLAY_STORE_SERVICE_ACCOUNT }}' > android/play-store-credentials.json + echo "Play Store credentials created" + else + echo "ERROR: No Play Store credentials secret found!" + exit 1 + fi + - name: 🤫 Output TelemetryDeck Secrets to TelemetryDeck.json run: | echo "{" > telemetrydeck.json @@ -135,8 +145,8 @@ jobs: node -e "JSON.parse(require('fs').readFileSync('telemetrydeck.json'))" node -e "JSON.parse(require('fs').readFileSync('glitchtip.json'))" - - name: 🚀 Run Android fastlane build - run: yarn fastlane:android:build + - name: 🚀 Run Android fastlane deploy + run: yarn fastlane:android:deploy env: KEYSTORE_PASSWORD: ${{ secrets.ANDROID_KEYSTORE_PASSWORD }} KEY_ALIAS: ${{ secrets.ANDROID_KEY_ALIAS }} diff --git a/android/fastlane/Fastfile b/android/fastlane/Fastfile index c8d35efd..10f444fd 100644 --- a/android/fastlane/Fastfile +++ b/android/fastlane/Fastfile @@ -34,5 +34,6 @@ platform :android do release_status: 'draft', json_key: './play-store-credentials.json', ) + gradle(task: 'assembleRelease') # This is to ensure the app is built and the apk is generated FOR GITHUB ACTIONS end end diff --git a/package.json b/package.json index bb2a0ca7..a0df7e80 100644 --- a/package.json +++ b/package.json @@ -23,6 +23,7 @@ "fastlane:ios:match": "cd ios && bundle exec fastlane match development", "fastlane:ios:beta": "cd ios && bundle exec fastlane beta", "fastlane:android:build": "cd android && bundle install && bundle exec fastlane build", + "fastlane:android:deploy": "cd android && bundle install && bundle exec fastlane deploy", "androidBuild": "cd android && ./gradlew clean && ./gradlew assembleRelease && cd .. && echo 'find apk in android/app/build/outputs/apk/release'", "prepare": "husky", "format:check": "prettier --check .",