From c34f86fdd391e1c777d8973a230700453823a0bc Mon Sep 17 00:00:00 2001 From: Ju YunGyeom <30407907+yuni-ju@users.noreply.github.com> Date: Sat, 2 Nov 2024 15:04:52 +0900 Subject: [PATCH] [cd] Remove unnecessary steps, Modifying Deployment Conditions --- .github/workflows/Android-release CD.yml | 29 ++++-------------------- 1 file changed, 4 insertions(+), 25 deletions(-) diff --git a/.github/workflows/Android-release CD.yml b/.github/workflows/Android-release CD.yml index 5af566e5..f3a02b44 100644 --- a/.github/workflows/Android-release CD.yml +++ b/.github/workflows/Android-release CD.yml @@ -54,39 +54,18 @@ jobs: echo '${{ secrets.SENTRY_PROPERTIES }}' > ./sentry.properties echo '${{ secrets.SENTRY_PROPERTIES }}' > ./app/src/main/resources/sentry.properties - # Build APK Release - - name: Build release Apk - run: ./gradlew clean assembleRelease - - # Upload APK - - name: Upload a Build APK Artifact - uses: actions/upload-artifact@v3.0.0 - with: - # Artifact name - name: app-release.apk - # A file, directory or wildcard pattern that describes what to upload - path: ./app/build/outputs/apk/release/app-release.apk - retention-days: 14 - # Build AAB Release - name: Build release Bundle run: ./gradlew clean bundleRelease - # Upload AAB - - name: Upload a Build AAB Artifact - uses: actions/upload-artifact@v3.0.0 - with: - # Artifact name - name: app-release.aab - # A file, directory or wildcard pattern that describes what to upload - path: ./app/build/outputs/bundle/release/app-release.aab - retention-days: 14 - + # Upload Google Play - name: Deploy to Play Store (INTERNAL) 🚀 uses: r0adkll/upload-google-play@v1 with: serviceAccountJsonPlainText: ${{ secrets.ANDROID_SERVICE_ACCOUNT_JSON }} packageName: ${{secrets.AOS_PACKAGE_NAME}} releaseFiles: ./app/build/outputs/bundle/release/app-release.aab - track: internal + track: production status: draft + if: github.ref != 'refs/heads/main' +