workflow
This commit is contained in:
parent
dfc5bf3e07
commit
53fa1c51cb
1 changed files with 6 additions and 6 deletions
12
.github/workflows/main.yml
vendored
12
.github/workflows/main.yml
vendored
|
@ -88,15 +88,15 @@ jobs:
|
||||||
uses: actions/setup-java@v4
|
uses: actions/setup-java@v4
|
||||||
with:
|
with:
|
||||||
distribution: temurin
|
distribution: temurin
|
||||||
java-version: 11
|
java-version: 21
|
||||||
|
|
||||||
- name: Cache Gradle dependencies
|
- name: Cache Gradle dependencies
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: ~/.gradle/caches
|
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: |
|
restore-keys: |
|
||||||
${{ runner.os }}-gradle-11debug
|
${{ runner.os }}-gradle-21debug
|
||||||
|
|
||||||
# Step 9: Build the APK
|
# Step 9: Build the APK
|
||||||
- name: Build APK
|
- name: Build APK
|
||||||
|
@ -116,20 +116,20 @@ jobs:
|
||||||
|
|
||||||
jarsigner -verbose -sigalg SHA256withRSA -digestalg SHA-256 \
|
jarsigner -verbose -sigalg SHA256withRSA -digestalg SHA-256 \
|
||||||
-keystore debug.keystore -storepass android -keypass android \
|
-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
|
androiddebugkey
|
||||||
|
|
||||||
- name: Verify APK Signature
|
- name: Verify APK Signature
|
||||||
run: |
|
run: |
|
||||||
jarsigner -verify -verbose -certs \
|
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
|
# Step 10: Upload APK as Artifact
|
||||||
- name: Upload APK as Artifact
|
- name: Upload APK as Artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: unsigned-apk
|
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
|
# # Step 10: Sign the APK
|
||||||
# - name: Sign APK
|
# - name: Sign APK
|
||||||
|
|
Loading…
Reference in a new issue