From 79810dd353cf6df1b177ab3826c449b7c58de82b Mon Sep 17 00:00:00 2001 From: JunJangE Date: Mon, 19 Aug 2024 16:42:22 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20cd=20=ED=8C=8C=EC=9D=BC=20=EC=83=9D?= =?UTF-8?q?=EC=84=B1=20=EC=BD=94=EB=93=9C=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/android-cd.yml | 46 +++++++++++++++++++++++++++----- 1 file changed, 39 insertions(+), 7 deletions(-) diff --git a/.github/workflows/android-cd.yml b/.github/workflows/android-cd.yml index 8722191c7..76f27bdd1 100644 --- a/.github/workflows/android-cd.yml +++ b/.github/workflows/android-cd.yml @@ -23,17 +23,49 @@ jobs: distribution: 'corretto' java-version: '17' - - name: Create Files + - name: Create local.properties env: - RELEASE_KEYSTORE: ${{ secrets.RELEASE_KEYSTORE }} - KEYSTORE_PROPERTIES: ${{ secrets.KEYSTORE_PROPERTIES }} LOCAL_PROPERTIES: ${{ secrets.LOCAL_PROPERTIES }} - GOOGLE_SERVICES_JSON: ${{ secrets.GOOGLE_SERVICES_JSON }} run: | - echo "RELEASE_KEYSTORE" | base64 -d > release.keystore - echo "$KEYSTORE_PROPERTIES" > keystore.properties echo "$LOCAL_PROPERTIES" > local.properties - echo "$GOOGLE_SERVICES_JSON" > google-services.json + + - name: Create keystore.properties + env: + KEYSTORE_PROPERTIES: ${{ secrets.KEYSTORE_PROPERTIES }} + run: | + echo "$KEYSTORE_PROPERTIES" > keystore.properties + + - name: Create keystore directory + run: mkdir -p /home/runner/work/2024-friendogly/2024-friendogly/android/app/keystore + + - name: Putting data + env: + DATA: ${{ secrets.RELEASE_KEYSTORE }} + run: echo $DATA > base64 -d > /home/runner/work/2024-friendogly/2024-friendogly/android/app/keystore/friendogly.jks + + - name: Create release-keystore + env: + RELEASE_KEYSTORE: ${{ secrets.RELEASE_KEYSTORE }} + run: | + touch ../android/app/keystore/friendogly.jks + echo RELEASE_KEYSTORE >> ../android/app/keystore/friendogly.jks + cat ../android/app/keystore/friendogly.jks + + - name: Create google-services.json + env: + GOOGLE_SERVICES_JSON: ${{ secrets.GOOGLE_SERVICES_JSON }} + run: | + touch ../android/app/google-services.json + echo GOOGLE_SERVICES_JSON >> ../android/app/google-services.json + cat ../android/app/google-services.json + + - name: Create file + run: cat /home/runner/work/2024-friendogly/2024-friendogly/android/app/google-services.json | base64 + + - name: Putting data + env: + DATA: ${{ secrets.GOOGLE_SERVICES_JSON }} + run: echo $DATA > /home/runner/work/2024-friendogly/2024-friendogly/android/app/google-services.json - name: Build Release APK run: |