#558 [layout] Search Post Hashtag Screen #27
Workflow file for this run
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: | |
pull_request: | |
branches: [ develop ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Cache Gradle packages | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.gradle/caches | |
~/.gradle/wrapper | |
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties', '**/buildSrc/**/*.kt') }} | |
restore-keys: | | |
${{ runner.os }}-gradle- | |
- name: Setup JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
distribution: "adopt" | |
java-version: '17' | |
- name: Setup Android SDK | |
uses: android-actions/setup-android@v2 | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
- name: Create google-services | |
run: | |
echo '${{ secrets.GOOGLE_SERVICES_JSON_RELEASE }}' > ./app/google-services.json | |
- name: Download Android keystore | |
id: android_keystore_release | |
uses: timheuer/base64-to-file@v1.2 | |
with: | |
fileName: keystore-release.jks | |
fileDir: '/home/runner/work/DAYO_Android/DAYO_Android/app' | |
encodedString: ${{ secrets.KEY_STORE_ENCODED }} | |
- name: Create key-release.properties | |
run: | | |
echo "storeFile=${{ steps.android_keystore_release.outputs.filePath }}" > ./app/keystore-release.properties | |
echo "storePassword=${{ secrets.ANDROID_KEYSTORE_PASSWORD }}" >> ./app/keystore-release.properties | |
echo "keyPassword=${{ secrets.ANDROID_KEY_PASSWORD }}" >> ./app/keystore-release.properties | |
echo "keyAlias=${{ secrets.ANDROID_KEY_ALIAS }}" >> ./app/keystore-release.properties | |
- name: Create Properties | |
run: | | |
echo '${{ secrets.LOCAL_PROPERTIES }}' > ./local.properties | |
echo '${{ secrets.SENTRY_PROPERTIES }}' > ./sentry.properties | |
echo '${{ secrets.SENTRY_PROPERTIES }}' > ./app/src/main/resources/sentry.properties | |
- name: Build assemble release apk | |
run: ./gradlew assembleRelease | |
- name: Create android test report | |
uses: asadmansr/android-test-report-action@v1.2.0 | |
if: ${{ always() }} | |
- name: Build assemble release apk | |
run: ./gradlew assembleRelease |