From ce571b229d2e8d2477aaa6fce3f0622eb7676a91 Mon Sep 17 00:00:00 2001 From: "byungtak.lee" Date: Mon, 23 Sep 2024 17:07:50 +0900 Subject: [PATCH] test --- .github/workflows/android.yml | 51 ++++++++++++++++++++--------------- 1 file changed, 29 insertions(+), 22 deletions(-) diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index 876e465..46c72be 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -41,7 +41,14 @@ jobs: - name: Grant execute permission for gradlew run: chmod +x gradlew - - name: Access DEV_BASE_URL + - name: Decode Keystore + id: decode_keystore + uses: timheuer/base64-to-file@v1 + with: + fileName: '../nextroom_key' + encodedString: ${{ secrets.SIGNING_KEY }} + + - name: Access Build Key run: | echo DEV_BASE_URL=\"DEV_BASE_URL\" > local.properties echo PROD_BASE_URL=\"PROD_BASE_URL\" >> local.properties @@ -61,7 +68,6 @@ jobs: env: DATA: ${{ secrets.GOOGLE_SERVICES_JSON }} - - name: Build clean run: ./gradlew clean @@ -83,31 +89,32 @@ jobs: name: debug path: ./app/build/outputs/apk/debug/app-debug.apk - - name: Signing Release APK - uses: r0adkll/sign-android-release@v1 - # ID used to access action output - id: sign_app - with: - releaseDirectory: app/build/outputs/apk/release - signingKeyBase64: ${{ secrets.SIGNING_KEY }} - alias: ${{ secrets.ALIAS }} - keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }} - keyPassword: ${{ secrets.KEY_PASSWORD }} - env: - # override default build-tools version (33.0.0) -- optional - BUILD_TOOLS_VERSION: "34.0.0" +# - name: Signing Release APK +# uses: r0adkll/sign-android-release@v1 +# # ID used to access action output +# id: sign_app +# with: +# releaseDirectory: app/build/outputs/apk/release +# signingKeyBase64: ${{ secrets.SIGNING_KEY }} +# alias: ${{ secrets.ALIAS }} +# keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }} +# keyPassword: ${{ secrets.KEY_PASSWORD }} +# env: +# # override default build-tools version (33.0.0) -- optional +# BUILD_TOOLS_VERSION: "34.0.0" # Example use of `signedReleaseFile` output -- not needed - - uses: actions/upload-artifact@v3 - with: - name: Signed app bundle - path: ${{steps.sign_app.outputs.signedReleaseFile}} - # - name: Upload Release APK # uses: actions/upload-artifact@v3 # with: -# name: release -# path: ./app/build/outputs/apk/release/app-release.apk +# name: Signed app bundle +# path: ${{steps.sign_app.outputs.signedReleaseFile}} + + - name: Upload Release APK + uses: actions/upload-artifact@v3 + with: + name: release + path: ./app/build/outputs/apk/release/app-release.apk # # - name: Upload apk to Firebase App Distribution # uses: wzieba/Firebase-Distribution-Github-Action@v1