Merge pull request #233 from takeny1998/feature/add-read-only-post #13
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 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: Generate Keystore | |
env: | |
APP_KEYSTORE: ${{ secrets.APP_KEYSTORE }} | |
run: | | |
echo "$APP_KEYSTORE" > keystore_b64.txt | |
base64 --decode --ignore-garbage keystore_b64.txt > keystore.jks | |
working-directory: ./android/app | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
- name: build release | |
env: | |
SIGNING_KEY_ALIAS: ${{ secrets.SIGNING_KEY_ALIAS }} | |
SIGNING_KEY_PASSWORD: ${{ secrets.SIGNING_KEY_PASSWORD }} | |
STORE_PASSWORD: ${{ secrets.STORE_PASSWORD }} | |
run: | | |
echo $STORE_PASSWORD | |
./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 |