Firebase CD #18
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: 1.8 | |
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 build --stacktrace | |