-
Notifications
You must be signed in to change notification settings - Fork 2
54 lines (45 loc) · 1.5 KB
/
cd.yml
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
47
48
49
50
51
52
53
54
name: Android CD
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: set up JDK 11
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 11
cache: gradle
- name: Make gradlew executable
run: chmod +x ./gradlew
- name: Gradle cache
uses: actions/cache@v4
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Update Secrets
env:
KOIN_STORE_PASSWORD: $({ secrets.KOIN_STORE_PASSWORD})
NAVER_MAP_KEY: $({ secrets.NAVER_MAP_KEY})
SECRET_KEY : $({ secrets.SECRET_KEY })
run: |
echo "koin_store_password=$KOIN_STORE_PASSWORD\nnavermap_key=$NAVER_MAP_KEY" > ./local.properties
echo "$SECRET_KEY" | base64 -di > ./koin/team_kap_android.jks
- name: Update Firebase
env:
FIREBASE: $({ secrets.FIREBASE })
run: |
echo $FIREBASE > ./core/google-services.json
echo $FIREBASE > ./koin/google-services.json
- name: Build
env:
GOOGLE_APPLICATION_CREDENTIALS: $({ secrets.FIREBASE})
run: |
./gradlew clean
./gradlew bundleRelease --stacktrace