Update README.md #49
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: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
LOCAL_PROPERTIES_CONTENTS: ${{ secrets.LOCAL_PROPERTIES_CONTENTS }} # scerets에서 로컬 프로퍼티 값 변수(LOCAL_PROPERTIES_CONTENTS)로 설정 | |
KEY_STORE_PROPERTIES_CONTENTS: ${{ secrets.KEY_STORE_PROPERTIES_CONTENTS }} # scerets에서 로컬 프로퍼티 값 변수(KEY_STORE_PROPERTIES_CONTENTS)로 설정 | |
GOOGLE_SERVICES_JSON: ${{ secrets.GOOGLE_SERVICES_JSON }} # scerets에서 구글 제이슨 값 변수(GOOGLE_SERVICES_JSON)로 설정 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: set up JDK 17 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 17 | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
shell: bash | |
- name: Create google-services.json | |
run: echo "$GOOGLE_SERVICES_JSON" > app/google-services.json | |
- name: Create local.properties | |
run: | | |
echo "$LOCAL_PROPERTIES_CONTENTS" > local.properties | |
- name: Create keystore.properties | |
run: | | |
echo "$KEY_STORE_PROPERTIES_CONTENTS" > keystore.properties | |
- name: Build debug | |
run: ./gradlew assembleDebug |