Skip to content

Commit

Permalink
[FIX] #7 - env 설정 (BASE_URL)
Browse files Browse the repository at this point in the history
  • Loading branch information
jung0115 committed Jul 8, 2024
1 parent 90de277 commit 6eb9fd8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/android_ci_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ jobs:

runs-on: ubuntu-latest

env:
BASE_URL: ${{ secrets.API_BASE_URL }}

steps:
- uses: actions/checkout@v4

Expand All @@ -24,6 +27,7 @@ jobs:

- name: Grant execute permission for gradlew
run: chmod +x gradlew
shell: bash

# 환경변수(GOOGLE_SERVICES_JSON) 값의 내용을 기반으로 `app/google-services.json` 생성
- name: Create google-services.json
Expand All @@ -32,11 +36,7 @@ jobs:
# (LOCAL_PROPERTIES_CONTENTS)를 기반으로 local.properties 생성
- name: Create local.properties
run: |
echo "api.baseurl=${{ secrets.API_BASE_URL }}" > $GITHUB_WORKSPACE/local.properties
cat local.properties
- name: local.properties 디렉토리 확인 (디버깅용)
run: ls -r
echo "api.baseurl=$BASE_URL" > $GITHUB_WORKSPACE/local.properties
# 캐시 정리
- name: Clean Gradle cache
Expand Down

0 comments on commit 6eb9fd8

Please sign in to comment.