Skip to content

ci: update config

ci: update config #2

Workflow file for this run

name: Build and Upload to Google Play Internal Testing
on:
push:
branches:
- ci/fastlane #TODO: Update thiss
jobs:
build:
name: Build and Upload AAB
runs-on: ubuntu-latest
steps:
# Step 1: Checkout code
- name: Checkout Code
uses: actions/checkout@v3
# Step 2: Set up Node.js environment
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '20' # Adjust to your Node.js version
# Step 3: Install dependencies
- name: Install Dependencies
run: |
npm install
cd template/android && ./gradlew clean
# Step 4: Set up JDK 11
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adoptopenjdk'
# # Step 5: Decode the keystore file
# - name: Decode Keystore
# run: echo "${{ secrets.ANDROID_KEYSTORE_FILE }}" | base64 --decode > ~/.android/keystore.jks
# Step 6: Build the AAB file
- name: Build AAB
run: |
cd template/android
./gradlew bundleRelease
# # Step 7: Upload AAB to Google Play using fastlane
# - name: Upload AAB to Google Play
# uses: fastlane/action-upload-to-playstore@v1
# with:
# service_account_json: ${{ secrets.GOOGLE_PLAY_JSON_KEY }}
# package_name: com.yourapp.package # Replace with your app's package name
# track: internal # For internal testing track
# aab: android/app/build/outputs/bundle/release/app-release.aab