Fix start page playback and speed dial shuffle loading #746
This file contains hidden or 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 | |
| on: | |
| push: | |
| branches: [main, master] | |
| workflow_dispatch: | |
| env: | |
| JAVA_VERSION: '21' | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| id-token: write | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Java | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: ${{ env.JAVA_VERSION }} | |
| distribution: 'temurin' | |
| - name: Setup Android SDK | |
| uses: android-actions/setup-android@v2 | |
| - name: Decode keystores | |
| env: | |
| DEBUG_KEYSTORE: ${{ secrets.DEBUG_KEYSTORE }} | |
| RELEASE_KEYSTORE: ${{ secrets.RELEASE_KEYSTORE }} | |
| run: | | |
| mkdir -p app/keystore | |
| echo "$DEBUG_KEYSTORE" | base64 -d > app/keystore/debug.keystore | |
| echo "$RELEASE_KEYSTORE" | base64 -d > app/keystore/release.keystore | |
| ls -la app/keystore/ | |
| - name: Create local.properties | |
| run: | | |
| mkdir -p app/keystore | |
| cp app/keystore/*.keystore keystore/ 2>/dev/null || true | |
| cat > local.properties << EOF | |
| sdk.dir=$ANDROID_HOME | |
| # LastFM API Keys | |
| LASTFM_API_KEY=${{ secrets.LASTFM_API_KEY }} | |
| LASTFM_SECRET=${{ secrets.LASTFM_SECRET }} | |
| # Debug keystore (root level) | |
| debug.storeFile=keystore/debug.keystore | |
| debug.storePassword=${{ secrets.DEBUG_STORE_PASSWORD }} | |
| debug.keyAlias=${{ secrets.DEBUG_KEY_ALIAS }} | |
| debug.keyPassword=${{ secrets.DEBUG_KEY_PASSWORD }} | |
| # Release keystore (root level) | |
| release.storeFile=keystore/release.keystore | |
| release.storePassword=${{ secrets.RELEASE_STORE_PASSWORD }} | |
| release.keyAlias=${{ secrets.RELEASE_KEY_ALIAS }} | |
| release.keyPassword=${{ secrets.RELEASE_KEY_PASSWORD }} | |
| # Persistent Debug keystore | |
| debug.persistent.storeFile=keystore/debug.keystore | |
| debug.persistent.storePassword=${{ secrets.DEBUG_STORE_PASSWORD }} | |
| debug.persistent.keyAlias=${{ secrets.DEBUG_KEY_ALIAS }} | |
| debug.persistent.keyPassword=${{ secrets.DEBUG_KEY_PASSWORD }} | |
| EOF | |
| - name: Build Mobile FossUniversalRelease APK | |
| run: | | |
| sed -i 's|tinypinyin = "2.0.3"|tinypinyin = "2.0.1"|g' gradle/libs.versions.toml | |
| ./gradlew assembleFossMobileUniversalRelease --no-daemon --no-configuration-cache | |
| - name: Build Mobile GmsUniversalRelease APK | |
| run: | | |
| ./gradlew assembleGmsMobileUniversalRelease --no-daemon --no-configuration-cache | |
| - name: Build TV FossUniversalRelease APK | |
| run: | | |
| sed -i 's|tinypinyin = "2.0.3"|tinypinyin = "2.0.1"|g' gradle/libs.versions.toml | |
| ./gradlew assembleFossTvUniversalRelease --no-daemon --no-configuration-cache | |
| - name: Upload Mobile FOSS APK | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: MobileFossUniversalRelease | |
| path: app/build/outputs/apk/fossMobileUniversal/release/*.apk | |
| - name: Upload Mobile GMS APK | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: MobileGmsUniversalRelease | |
| path: app/build/outputs/apk/gmsMobileUniversal/release/*.apk | |
| - name: Upload TV FOSS APK | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: TvFossUniversalRelease | |
| path: app/build/outputs/apk/fossTvUniversal/release/*.apk |