This commit is contained in:
nomadics9 2024-12-15 17:23:48 +03:00
parent dfc5bf3e07
commit 53fa1c51cb

View file

@ -88,15 +88,15 @@ jobs:
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 11
java-version: 21
- name: Cache Gradle dependencies
uses: actions/cache@v3
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-18debug-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
key: ${{ runner.os }}-gradle-21debug-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-11debug
${{ runner.os }}-gradle-21debug
# Step 9: Build the APK
- name: Build APK
@ -116,20 +116,20 @@ jobs:
jarsigner -verbose -sigalg SHA256withRSA -digestalg SHA-256 \
-keystore debug.keystore -storepass android -keypass android \
app-release/app/build/outputs/apk/release/alaskartv-androidtv-v${{ env.VERSION_NAME }}-release-unsigned.apk \
app-release/app/build/outputs/apk/release/alaskartv-androidtv-v${{ env.VERSION_NAME }}-debug-unsigned.apk \
androiddebugkey
- name: Verify APK Signature
run: |
jarsigner -verify -verbose -certs \
app-release/app/build/outputs/apk/release/alaskartv-androidtv-v${{ env.VERSION_NAME }}-release-unsigned.apk
app-release/app/build/outputs/apk/release/alaskartv-androidtv-v${{ env.VERSION_NAME }}-debug-unsigned.apk
# Step 10: Upload APK as Artifact
- name: Upload APK as Artifact
uses: actions/upload-artifact@v4
with:
name: unsigned-apk
path: app-release/app/build/outputs/apk/release/alaskartv-androidtv-v${{ env.VERSION_NAME }}-release-unsigned.apk
path: app-release/app/build/outputs/apk/release/alaskartv-androidtv-v${{ env.VERSION_NAME }}-debug-unsigned.apk
# # Step 10: Sign the APK
# - name: Sign APK