Skip to content

Commit

Permalink
[setting/#1] CD 파일 수정
Browse files Browse the repository at this point in the history
- `local.properties`에 base url 입력 추가
- `app/google-services.json` 생성 추가
  • Loading branch information
freeskyES committed Feb 9, 2025
1 parent 728cd1b commit 26db8e8
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion .github/workflows/Release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,28 @@ jobs:
- name: Accept licenses
run: yes | sdkmanager --licenses || true

# 6. Add Local Properties
- name: Add Local Properties
env:
BASE_URL: ${{ secrets.BASE_URL }}
run: |
echo base.url=\"$BASE_URL\" >> ./local.properties
# 7. Setup google-services.json
- name: Setup google-services.json
run: |
echo "Setting up google-services.json..."
echo '${{ secrets.GOOGLE_SERVICES_JSON }}' > ./app/google-services.json
if [ -f ./app/google-services.json ]; then
echo "google-services.json successfully created at ./app/google-services.json"
else
echo "Error: google-services.json not found at ./app/google-services.json"
exit 1
fi
shell: bash
env:
GOOGLE_SERVICES_JSON: ${{ secrets.GOOGLE_SERVICES_JSON }}

- name: Get Tag Name and Message
id: tag_info
run: |
Expand All @@ -47,7 +69,7 @@ jobs:
TAG_MESSAGE_SANITIZED=$(echo "$TAG_MESSAGE" | tr -d '\n' | tr -d '\r')
echo "TAG_MESSAGE=$TAG_MESSAGE_SANITIZED" >> $GITHUB_ENV
# 6. Build release APK
# 8. Build release APK
- name: Build APK
run: ./gradlew assembleDebug

Expand Down

0 comments on commit 26db8e8

Please sign in to comment.