mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-13 05:40:31 +05:30
Sign debug APK.
This commit is contained in:
parent
441087d871
commit
cef6f8df53
2
.github/tg.py
vendored
2
.github/tg.py
vendored
@ -21,7 +21,7 @@ def bot():
|
||||
|
||||
Signed-off-by: {data['commit']['author']['name']}
|
||||
''', 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')
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
16
.github/workflows/ci.yml
vendored
16
.github/workflows/ci.yml
vendored
@ -54,6 +54,17 @@ jobs:
|
||||
cd ..
|
||||
./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
|
||||
continue-on-error: true
|
||||
run: |
|
||||
@ -61,7 +72,7 @@ jobs:
|
||||
echo "GH_REPO = '${{ github.repository }}'" > tgconfig.py
|
||||
git clone https://github.com/LibreTubeAlpha/Archive archive
|
||||
rm -rf archive/*.apk
|
||||
mv app/build/outputs/apk/debug/*.apk archive/
|
||||
mv app/build/outputs/apk/debug/*-signed.apk archive/
|
||||
cd archive
|
||||
python ../uploader.py
|
||||
|
||||
@ -86,4 +97,5 @@ jobs:
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: app
|
||||
path: archive/*.apk
|
||||
path: archive/*-signed.apk
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user