Release v2023.2.0 #1077
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: [ "master", "develop" ] | |
pull_request: | |
branches: [ "master", "develop" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: 'true' | |
- name: Create local.properties | |
run: | | |
echo "Creating local.properties file" | |
echo "KEYSTORE_PATH=${{ secrets.KEYSTORE_PATH }}" > local.properties | |
echo "KEYSTORE_PASSWORD=${{ secrets.KEYSTORE_PASSWORD }}" >> local.properties | |
echo "KEY_ALIAS=${{ secrets.KEY_ALIAS }}" >> local.properties | |
echo "KEY_PASSWORD=${{ secrets.KEY_PASSWORD }}" >> local.properties | |
- name: Setup Java | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
cache: gradle | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
- name: Build with Gradle | |
run: ./gradlew :app:assembleDebug | |
- name: Unit Test | |
run: ./gradlew testDebugUnitTest | |
- name: Check Kotlin code style | |
run: ./gradlew ktlintCheck | |
- name: Upload Debug APK (Google Play) | |
uses: actions/upload-artifact@v3 | |
with: | |
name: Google Play App (Debug) | |
path: ./app/build/outputs/apk/googlePlay/debug/app-googlePlay-debug.apk | |
- name: Upload Debug APK (F-Droid) | |
uses: actions/upload-artifact@v3 | |
with: | |
name: F-Droid App (Debug) | |
path: ./app/build/outputs/apk/fdroid/debug/app-fdroid-debug.apk |