Skip to content

Fix jvm setup

Fix jvm setup #16

Workflow file for this run

name: Deploy Play Store
on:
push:
branches:
- '**'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: set up JDK
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: gradle
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Prepare Env
env:
KEY: ${{ secrets.BANJEN_SIGN_KEY }}
BANJEN_SIGN_PWD: ${{ secrets.BANJEN_SIGN_PWD }}
BANJEN_SIGN_ALIAS: ${{ secrets.BANJEN_SIGN_ALIAS }}
BANJEN_SIGN_PATH: ${{ secrets.BANJEN_SIGN_PATH }}
BANJEN_ADS_UNIT_ID_BANNER: ${{ secrets.BANJEN_ADS_UNIT_ID_BANNER }}
BANJEN_ADMOB_APP_ID: ${{ secrets.BANJEN_ADMOB_APP_ID }}
GOOGLE_SERVICES: ${{ secrets.GOOGLE_SERVICES }}
run: |
echo "org.gradle.jvmargs=-Xmx2048M -Dkotlin.daemon.jvm.options=-Xmx2048M" >> gradle.properties
echo "android.useAndroidX=true" >> gradle.properties
echo "android.enableJetifier=true" >> gradle.properties
echo "$KEY" | base64 -d > app/key.keystore
echo "GOOGLE_SERVICES" | base64 -d > app/google-services.json
echo "$BANJEN_SIGN_PWD" | base64 -d >> gradle.properties
echo "$BANJEN_SIGN_ALIAS" | base64 -d >> gradle.properties
echo "$BANJEN_SIGN_PATH" | base64 -d >> gradle.properties
echo "$BANJEN_ADS_UNIT_ID_BANNER" | base64 -d >> gradle.properties
echo "$BANJEN_ADMOB_APP_ID" | base64 -d >> gradle.properties
- name: Build with Gradle
run: ./gradlew bundleRelease