From 38009ecd4af6477a20480c8c78adfe35a04eae05 Mon Sep 17 00:00:00 2001 From: Doyoon Kim Date: Tue, 15 Oct 2024 23:31:19 +0900 Subject: [PATCH] [REFACT] Add New Repository Secret for Github Action - Add new secret file for Github Action. --- .github/workflows/GenerateBuildArtifact.yml | 8 ++++++++ .github/workflows/ValidateDevelopmentForRelease.yml | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/.github/workflows/GenerateBuildArtifact.yml b/.github/workflows/GenerateBuildArtifact.yml index 4465513..4a0a137 100644 --- a/.github/workflows/GenerateBuildArtifact.yml +++ b/.github/workflows/GenerateBuildArtifact.yml @@ -25,6 +25,14 @@ jobs: BASEURL: ${{ secrets.BASEURL }} run: echo BASEURL="$BASEURL" > ./local.properties + - name: Create Necessary File for Building Project + run: cat /home/runner/work/KNUTICE-Android/KNUTICE-Android/app/google-services.json | base64 + + - name: Putting Data into Created File. + env: + DATA: ${{ secrets.GOOGLE_SERVICES_JSON }} + run: echo $DATA > /home/runner/work/KNUTICE-Android/KNUTICE-Android/app/google-services.json + - name: Clean Project run: ./gradlew clean diff --git a/.github/workflows/ValidateDevelopmentForRelease.yml b/.github/workflows/ValidateDevelopmentForRelease.yml index 3442760..88984bd 100644 --- a/.github/workflows/ValidateDevelopmentForRelease.yml +++ b/.github/workflows/ValidateDevelopmentForRelease.yml @@ -25,6 +25,14 @@ jobs: BASEURL: ${{ secrets.BASEURL }} run: echo BASEURL="$BASEURL" > ./local.properties + - name: Create Necessary File for Building Project + run: cat /home/runner/work/KNUTICE-Android/KNUTICE-Android/app/google-services.json | base64 + + - name: Putting Data into Created File. + env: + DATA: ${{ secrets.GOOGLE_SERVICES_JSON }} + run: echo $DATA > /home/runner/work/KNUTICE-Android/KNUTICE-Android/app/google-services.json + - name: Clean Project run: ./gradlew clean