From d0ec033f5bff82b8fc392888baf1bf710e276859 Mon Sep 17 00:00:00 2001 From: Junyoung-WON Date: Mon, 22 Jul 2024 17:29:24 +0900 Subject: [PATCH] =?UTF-8?q?build:=20LOCAL=5FPROPERTIES=5FAPI=5FKEY=20?= =?UTF-8?q?=EB=B3=80=EC=88=98=20=EC=84=A4=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Git Action에 Secret으로 저장된 LOCAL_PROPERTIES_API_KEY를 변수로 가져온다. - 가져온 변수를 echo를 활용하여 local.properties에 설정한다. --- .github/workflows/android-ci.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/android-ci.yml b/.github/workflows/android-ci.yml index f679dd043..e0fcc2f7a 100644 --- a/.github/workflows/android-ci.yml +++ b/.github/workflows/android-ci.yml @@ -43,4 +43,11 @@ jobs: run: ./gradlew clean test - name: Build with Gradle - run: ./gradlew build \ No newline at end of file + run: ./gradlew build + + - name: Access LOCAL_PROPERTIES_API_KEY + run: | + echo LOCAL_PROPERTIES_API_KEY=\"$LOCAL_PROPERTIES_API_KEY\" >> local.properties + shell: bash + env: + $LOCAL_PROPERTIES_API_KEY: ${{ secrets.LOCAL_PROPERTIES_API_KEY }}