Skip to content

Commit

Permalink
[PC-669] FirebaseAppDistribution에서는 디버그 모드를 QA에게 전송하도록 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
tgyuuAn committed Feb 26, 2025
1 parent f9faf7d commit 79052c7
Showing 1 changed file with 10 additions and 24 deletions.
34 changes: 10 additions & 24 deletions .github/workflows/android_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,48 +41,34 @@ jobs:
echo "PIECE_CHANNEL_TALK_URL=${{ secrets.PIECE_CHANNEL_TALK_URL }}" >> local.properties
echo "GOOGLE_WEB_CLIENT_ID=${{ secrets.GOOGLE_WEB_CLIENT_ID }}" >> local.properties
- name: Decode keystore file
run: echo "${{ secrets.KEYSTORE_BASE64 }}" | base64 --decode > ./app/upload-keystore.jks

- 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: Create google-services.json
run: echo '${{ secrets.GOOGLE_SERVICES_JSON }}' > ./app/google-services.json

- name: Build with Gradle
run: ./gradlew assembleDebug --build-cache --stacktrace
run: |
./gradlew assembleDebug --build-cache --stacktrace
./gradlew assembleRelease --stacktrace
- name: KtlintCheck
run: ./gradlew ktlintcheck

- name: Test
run: ./gradlew test --stacktrace

- name: Build AAB
run: ./gradlew bundleRelease --stacktrace

- name: Upload AAB
- name: Upload Release APK
uses: actions/upload-artifact@v4
with:
name: app-release.aab
path: app/build/outputs/bundle/release/app-release.aab

- name: Build APK for Testing
run: ./gradlew assembleRelease --stacktrace
name: app-release.apk
path: app/build/outputs/apk/release/app-release.apk

- name: Install Firebase CLI
run: curl -sL firebase.tools | bash

- name: Upload APK to Firebase App Distribution
- name: Upload Debug APK to Firebase App Distribution
env:
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
run: |
firebase appdistribution:distribute app/build/outputs/apk/release/app-release.apk \
firebase appdistribution:distribute app/build/outputs/apk/debug/app-debug.apk \
--app ${{ secrets.FIREBASE_APP_ID }} \
--release-notes "~Piece 새로운 버전이 날라왔어용~" \
--groups "puzzly-내부-qa"
--release-notes "QA 버전 배포" \
--groups "puzzly-내부-qa"

0 comments on commit 79052c7

Please sign in to comment.