Skip to content

Merge pull request #177 from wsb7788/feature-aos/signingConfig-설정 #5

Merge pull request #177 from wsb7788/feature-aos/signingConfig-설정

Merge pull request #177 from wsb7788/feature-aos/signingConfig-설정 #5

name: Android Build & upload to Firebase App Distribution
on:
push:
branches: [ "develop" ]
defaults:
run:
working-directory: ./android
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: set up JDK 17
uses: actions/setup-java@v3
with:
java-version: 17
distribution: corretto
cache: gradle
- name: Create Properties File
env:
LOCAL_PROPERTIES: ${{ secrets.LOCAL_PROPERTIES }}
GOOGLE_SERVICES_JSON: ${{ secrets.GOOGLE_SERVICES_JSON }}
APP_KEYSTORE: ${{ secrets.APP_KEYSTORE }}
run: |
echo "$LOCAL_PROPERTIES" > local.properties
echo "$GOOGLE_SERVICES_JSON" > app/google-services.json
echo "$APP_KEYSTORE" > keystore_b64.txt
base64 --decode --ignore-garbage keystore_b64.txt > app/keystore.jks
- name: build release
env:
SIGNING_KEY_ALIAS: ${{ secrets.SIGNING_KEY_ALIAS }}
SIGNING_KEY_PASSWORD: ${{ secrets.SIGNING_KEY_PASSWORD }}
STORE_PASSWORD: ${{ secrets.STORE_PASSWORD }}
run: ./gradlew assembleRelease
- name: upload artifact to Firebase App Distribution
uses: wzieba/Firebase-Distribution-Github-Action@v1
with:
appId: ${{ secrets.FIREBASE_APP_ID }}
serviceCredentialsFileContent: ${{ secrets.CREDENTIAL_FILE_CONTENT }}
groups: "부스트캠프-8기"
file: android/app/build/outputs/apk/release/app-release.apk