[IDLE-000] CenterPending 화면에서 CenterStatus를 2초마다 Polling 하도록 변경 및 Han… #26
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: | |
push: | |
branches: ["release"] | |
pull_request: | |
branches: ["release"] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
cache: gradle | |
- name: Gradle cache | |
uses: actions/cache@v4 | |
with: | |
path: | | |
~/.gradle/caches | |
~/.gradle/wrapper | |
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} | |
restore-keys: | | |
${{ runner.os }}-gradle- | |
- name: Set up local.properties | |
run: | | |
echo "CARE_DEV_BASE_URL=${{ secrets.CARE_DEV_BASE_URL }}" >> local.properties | |
echo "CARE_PROD_BASE_URL=${{ secrets.CARE_PROD_BASE_URL }}" >> local.properties | |
echo "NAVER_BASE_URL=${{ secrets.NAVER_BASE_URL }}" >> local.properties | |
echo "NAVER_CLIENT_ID=${{ secrets.NAVER_CLIENT_ID }}" >> local.properties | |
echo "NAVER_CLIENT_SECRET=${{ secrets.NAVER_CLIENT_SECRET }}" >> local.properties | |
echo "AMPLITUDE_API_KEY=${{ secrets.AMPLITUDE_API_KEY }}" >> local.properties | |
echo "KAKAO_APP_KEY=${{ secrets.KAKAO_APP_KEY }}" >> local.properties | |
echo "APPSFLYER_API_KEY=${{ secrets.APPSFLYER_API_KEY }}" >> local.properties | |
- name: Set up keystore.properties | |
run: | | |
echo "STORE_FILE_PATH=./upload-keystore.jks" >> keystore.properties | |
echo "STORE_PASSWORD=${{ secrets.STORE_PASSWORD }}" >> keystore.properties | |
echo "KEY_ALIAS=${{ secrets.KEY_ALIAS }}" >> keystore.properties | |
echo "KEY_PASSWORD=${{ secrets.KEY_PASSWORD }}" >> keystore.properties | |
- name: Decode keystore file | |
run: echo "${{ secrets.KEYSTORE_BASE64 }}" | base64 --decode > ./app/upload-keystore.jks | |
- name: Create google-services.json | |
run: echo '${{ secrets.GOOGLE_SERVICES_JSON }}' > ./app/google-services.json | |
- name: Build with Gradle | |
run: ./gradlew assembleDebug --build-cache --stacktrace | |
- name: KtlintCheck | |
run: ./gradlew ktlintcheck | |
- name: Test | |
run: ./gradlew test --stacktrace | |
- name: Build AAB for Firebase | |
run: ./gradlew bundleRelease --stacktrace | |
- name: Upload AAB artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: app-release.aab | |
path: app/build/outputs/bundle/release/app-release.aab | |
- name: Build APK for Testing | |
run: ./gradlew assembleRelease --stacktrace | |
- name: Install Firebase CLI | |
run: curl -sL firebase.tools | bash | |
- name: Upload APK to Firebase App Distribution | |
env: | |
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }} | |
run: | | |
firebase appdistribution:distribute app/build/outputs/apk/release/app-release.apk \ | |
--app ${{ secrets.FIREBASE_APP_ID }} \ | |
--release-notes "~새로운 릴리즈 버전이 날라왔어용~" \ | |
--groups "세얼간이" |