Skip to content

Merge pull request #173 from boostcampwm2023/feature-aos/actions-chec… #4

Merge pull request #173 from boostcampwm2023/feature-aos/actions-chec…

Merge pull request #173 from boostcampwm2023/feature-aos/actions-chec… #4

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 }}
run: |
echo "$LOCAL_PROPERTIES" > local.properties
echo "$GOOGLE_SERVICES_JSON" > app/google-services.json
- name: build release
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