[Release] 1.0.0 배포 - develop #149
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: Hous PR Builder | |
on: | |
pull_request: | |
branches: [ develop, master ] | |
jobs: | |
build: | |
name: PR Checker | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Gradle cache | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.gradle/caches | |
~/.gradle/wrapper | |
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} | |
restore-keys: | | |
${{ runner.os }}-gradle- | |
- name: set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: 17 | |
# - name: Create Google-Services.json | |
# env: | |
# GOOGLE_SERVICES: ${{ secrets.GOOGLE_SERVICES }} | |
# run: | | |
# touch ./app/google-services.json | |
# echo $GOOGLE_SERVICES >> ./app/google-services.json | |
# cat ./app/google-services.json | |
# | |
- name: Create Local Properties | |
run: touch local.properties | |
- name: Access Local Properties | |
env: | |
FUNCH_DEBUG_BASE_URL: ${{ secrets.FUNCH_DEBUG_BASE_URL }} | |
STORE_PASSWORD: ${{ secrets.STORE_PASSWORD }} | |
KEY_PASSWORD: ${{ secrets.KEY_PASSWORD }} | |
KEY_ALIAS: ${{ secrets.KEY_ALIAS }} | |
STORE_FILE: ${{ secrets.STORE_FILE }} | |
run: | | |
echo FUNCH_DEBUG_BASE_URL=\"FUNCH_DEBUG_BASE_URL\" >> local.properties | |
echo STORE_PASSWORD= $STORE_PASSWORD >> local.properties | |
echo KEY_PASSWORD= $KEY_PASSWORD >> local.properties | |
echo KEY_ALIAS= $KEY_ALIAS >> local.properties | |
echo STORE_FILE= $STORE_FILE >> local.properties | |
- name: Create Key Store | |
env: | |
KEY_STORE_BASE_64: ${{secrets.KEY_STORE_BASE_64}} | |
run: | | |
echo "$KEY_STORE_BASE_64" | base64 -d > ./funch_key_store.jks | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
- name: Lint Check | |
run: ./gradlew ktlintCheck | |
- name: run rest | |
run: ./gradlew test | |
- name: Build with Gradle | |
run: ./gradlew build |