diff --git a/.github/workflows/android_cd.yml b/.github/workflows/android_cd.yml index e2a317b2..f8032c63 100644 --- a/.github/workflows/android_cd.yml +++ b/.github/workflows/android_cd.yml @@ -50,12 +50,14 @@ jobs: 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 @@ -63,26 +65,20 @@ jobs: - 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" \ No newline at end of file + --release-notes "QA 버전 배포" \ + --groups "puzzly-내부-qa"