Sign debug APK.

This commit is contained in:
rozari0 2022-10-22 16:36:11 +06:00
parent 441087d871
commit cef6f8df53
2 changed files with 15 additions and 3 deletions

2
.github/tg.py vendored
View File

@ -21,7 +21,7 @@ def bot():
Signed-off-by: {data['commit']['author']['name']} Signed-off-by: {data['commit']['author']['name']}
''', parse_mode=telegram.ParseMode.MARKDOWN) ''', parse_mode=telegram.ParseMode.MARKDOWN)
bot.send_media_group(TG_POST_ID, [telegram.InputMediaDocument(open('app-universal-debug.apk', 'rb')), telegram.InputMediaDocument(open('app-x86-debug.apk', 'rb')), telegram.InputMediaDocument(open('app-x86_64-debug.apk', 'rb')), telegram.InputMediaDocument(open('app-armeabi-v7a-debug.apk', 'rb')), telegram.InputMediaDocument(open('app-arm64-v8a-debug.apk', 'rb'))]) bot.send_media_group(TG_POST_ID, [telegram.InputMediaDocument(open('app-universal-debug-signed.apk', 'rb')), telegram.InputMediaDocument(open('app-x86-debug-signed.apk', 'rb')), telegram.InputMediaDocument(open('app-x86_64-debug-signed.apk', 'rb')), telegram.InputMediaDocument(open('app-armeabi-v7a-debug-signed.apk', 'rb')), telegram.InputMediaDocument(open('app-arm64-v8a-debug-signed.apk', 'rb'))])
system('killall -9 python') system('killall -9 python')
if __name__ == '__main__': if __name__ == '__main__':

View File

@ -54,6 +54,17 @@ jobs:
cd .. cd ..
./gradlew assembleDebug ./gradlew assembleDebug
- name: Sign Apk
id: sign_apk
uses: ilharp/sign-android-release@v1
with:
releaseDir: app/build/outputs/apk/debug
signingKey: ${{ secrets.ANDROID_SIGNING_KEY }}
keyAlias: ${{ secrets.ANDROID_KEY_ALIAS }}
keyStorePassword: ${{ secrets.ANDROID_KEYSTORE_PASSWORD }}
keyPassword: ${{ secrets.ANDROID_KEY_PASSWORD }}
- name: Upload to Archive - name: Upload to Archive
continue-on-error: true continue-on-error: true
run: | run: |
@ -61,7 +72,7 @@ jobs:
echo "GH_REPO = '${{ github.repository }}'" > tgconfig.py echo "GH_REPO = '${{ github.repository }}'" > tgconfig.py
git clone https://github.com/LibreTubeAlpha/Archive archive git clone https://github.com/LibreTubeAlpha/Archive archive
rm -rf archive/*.apk rm -rf archive/*.apk
mv app/build/outputs/apk/debug/*.apk archive/ mv app/build/outputs/apk/debug/*-signed.apk archive/
cd archive cd archive
python ../uploader.py python ../uploader.py
@ -86,4 +97,5 @@ jobs:
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
with: with:
name: app name: app
path: archive/*.apk path: archive/*-signed.apk