Skip to content

Commit

Permalink
Update android.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
HI-JIN2 authored Oct 31, 2023
1 parent 967df96 commit 29274e0
Showing 1 changed file with 24 additions and 18 deletions.
42 changes: 24 additions & 18 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,35 +13,41 @@ jobs:

steps:
- uses: actions/checkout@v3

- name: Cache Gradle packages
uses: actions/cache@v2
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties', '**/buildSrc/**/*.kt') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: BASE_URL
run: |
echo BASE_URL=\"$BASE_URL\" >> local.properties
shell: bash
env:
BASE_URL: ${{ secrets.BASE_URL}}
- name: set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: gradle

- name: Create Local Properties
run: touch local.properties

- name: KAKAO_NATIVE_APP_KEY
- name: Access Local Properties
env:
BASE_URL: ${{ secrets.BASE_URL }}
KAKAO_APP_KEY: ${{ secrets.KAKAO_NATIVE_APP_KEY }}
run: |
echo BASE_URL=\"$BASE_URL\" >> local.properties
echo KAKAO_NATIVE_APP_KEY=$KAKAO_NATIVE_APP_KEY >> local.properties
shell: bash
env:
APP_KEY: ${{ secrets.KAKAO_NATIVE_APP_KEY }}

- name: Generate google-services.json
run: |
echo "$GOOGLE_SERVICE" > app/google-services.json.b64
base64 -d -i app/google-services.json.b64 > app/google-services.json
env:
GOOGLE_SERVICE: ${{ secrets.GOOGLE_SERVICE }}

- 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
Expand Down

0 comments on commit 29274e0

Please sign in to comment.