Skip to content

Commit

Permalink
build: LOCAL_PROPERTIES_API_KEY 변수 설정
Browse files Browse the repository at this point in the history
- Git Action에 Secret으로 저장된 LOCAL_PROPERTIES_API_KEY를 변수로 가져온다.
- 가져온 변수를 echo를 활용하여 local.properties에 설정한다.
  • Loading branch information
Junyoung-WON committed Jul 22, 2024
1 parent 9b475e0 commit d0ec033
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/android-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,11 @@ jobs:
run: ./gradlew clean test

- name: Build with Gradle
run: ./gradlew build
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 }}

0 comments on commit d0ec033

Please sign in to comment.