-
Notifications
You must be signed in to change notification settings - Fork 6
46 lines (40 loc) · 1.64 KB
/
deploy.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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