Skip to content

fix : github action build error #13

fix : github action build error

fix : github action build error #13

Workflow file for this run

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.