Fix #1383 #1253
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: Build debug APK | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- '**' | |
paths-ignore: | |
- 'README.md' | |
- 'fastlane/**' | |
- 'assets/**' | |
- '.github/**/*.md' | |
- '.github/FUNDING.yml' | |
- '.github/ISSUE_TEMPLATE/**' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Decode google-services.json | |
run: echo ${{ secrets.GOOGLE_SERVICES }} | base64 -d >> app/google-services.json | |
- name: Decode Keystore | |
run: echo ${{ secrets.KEYSTORE }} | base64 -d >> app/music-debug.jks | |
- name: set up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: 17 | |
distribution: "zulu" | |
cache: 'gradle' | |
- name: Build debug APK and run jvm tests | |
run: ./gradlew assembleDebug lintFullDebug testFullDebugUnitTest --stacktrace -DskipFormatKtlint | |
env: | |
MUSIC_DEBUG_KEYSTORE_FILE: 'music-debug.jks' | |
MUSIC_DEBUG_SIGNING_STORE_PASSWORD: ${{ secrets.SIGNING_KEY_PASSWORD }} | |
MUSIC_DEBUG_SIGNING_KEY_PASSWORD: ${{ secrets.SIGNING_STORE_PASSWORD }} | |
- name: Upload APK | |
uses: actions/upload-artifact@v4 | |
with: | |
name: app | |
path: app/build/outputs/apk/full/debug/*.apk |