fix : target sdk update and library version update #8
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: [ "feature/*" ] | |
pull_request: | |
branches: [ "develop" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
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: Create secure.properties | |
run: echo "${{ secrets.SECURE_PROPERTIES }}" | base64 --decode > secure.properties | |
- name: Create keystore.properties | |
run: echo "${{ secrets.DEV_KEYSTORE_PROPERTIES }}" | base64 --decode > keystore.properties | |
- name: Decode And Save Keystore Base64 # app.keystoer.jks ํค ๊ฐ์ ๋์ฝ๋ ํด์ app/dev_ksystore.jks๋ก ์ ์ฅํ๋ค. (์๋ต ๊ฐ๋ฅ) | |
run: echo "${{ secrets.DEV_KEYSTORE }}" | base64 --decode > ddd_beer_dev.keystore | |
- name: Create google-services.json # ํ๊ฒฝ๋ณ์(GOOGLE_SERVICES_JSON) ๊ฐ์ ๋ด์ฉ์ ๊ธฐ๋ฐ์ผ๋ก `app/google-services.json`๋ฅผ ๋ง๋ ๋ค. | |
run: echo "${{ secrets.GOOGLE_SERVICES_JSON }}" | base64 --decode > app/google-services.json | |
- name: Build with Gradle | |
run: ./gradlew clean build | |
- uses: 8398a7/action-slack@v3 | |
with: | |
status: custom | |
fields: workflow,job,commit,repo,ref,author,took | |
custom_payload: | | |
{ | |
attachments: [{ | |
color: '${{ job.status }}' === 'success' ? 'good' : '${{ job.status }}' === 'failure' ? 'danger' : 'warning', | |
text: `${process.env.AS_WORKFLOW}\n${process.env.AS_JOB} (${process.env.AS_COMMIT}) of ${process.env.AS_REPO}@${process.env.AS_REF} by ${process.env.AS_AUTHOR} ${{ job.status }} in ${process.env.AS_TOOK}`, | |
}] | |
} | |
env: | |
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} | |
if: always() # Pick up events even if the job fails or is canceled. |