Merge pull request #170 from WithPeace/feat/#169-찜한_목록_화면_개선 #53
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Android CI | |
on: | |
push: | |
branches: ["develop"] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
# Gradle 캐싱: 빌드 시간과 네트워크 통신을 줄이기 위해 의존성 패키지들을 캐싱하여 재사용 | |
- name: Cache Gradle packages | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.gradle/caches | |
~/.gradle/wrapper | |
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties', '**/buildSrc/**/*.kt') }} | |
restore-keys: | | |
${{ runner.os }}-gradle- | |
- name: set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
cache: gradle | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
- name: Access Google Client Id | |
env: | |
GOOGLE_CLIENT_ID: ${{ secrets.GOOGLE_CLIENT_ID }} | |
run: | | |
echo "GOOGLE_CLIENT_ID=\"$GOOGLE_CLIENT_ID\"" >> local.properties | |
- name: Access YOUTH POLICY API KEY | |
env: | |
YOUTH_POLICY_API_KEY: ${{ secrets.YOUTH_POLICY_API_KEY }} | |
run: | | |
echo "YOUTH_POLICY_API_KEY=\"YOUTH_POLICY_API_KEY\"" >> local.properties | |
- name: Access BaseUrl | |
env: | |
YOUTH_POLICY_API_KEY: ${{ secrets.BASE_URL }} | |
run: | | |
echo "BASE_URL=\"BASE_URL\"" >> local.properties | |
- name: Create google-services in app | |
run: | | |
echo '${{ secrets.GOOGLE_SERVICES_JSON }}' > ./app/google-services.json | |
- name: Create google-services in analytics | |
run: | | |
echo '${{ secrets.GOOGLE_SERVICES_JSON }}' > ./core/analytics/google-services.json | |
- name: Build with Gradle | |
run: ./gradlew build | |